From 86bf456dfd07dc54f23b4b5a42c6cee9f610ed44 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 12 Aug 2020 09:22:28 +1000 Subject: [PATCH] Fix crash with composters By: md_5 --- .../bukkit/craftbukkit/util/DummyGeneratorAccess.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java index 903899dc68..2eeb3e23e4 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java @@ -26,6 +26,7 @@ import net.minecraft.server.ParticleParam; import net.minecraft.server.SoundCategory; import net.minecraft.server.SoundEffect; import net.minecraft.server.TickList; +import net.minecraft.server.TickListEmpty; import net.minecraft.server.TileEntity; import net.minecraft.server.WorldBorder; import net.minecraft.server.WorldData; @@ -40,12 +41,12 @@ public class DummyGeneratorAccess implements GeneratorAccess { @Override public TickList getBlockTickList() { - throw new UnsupportedOperationException("Not supported yet."); + return TickListEmpty.b(); } @Override public TickList getFluidTickList() { - throw new UnsupportedOperationException("Not supported yet."); + return TickListEmpty.b(); } @Override @@ -192,9 +193,4 @@ public class DummyGeneratorAccess implements GeneratorAccess { public boolean a(BlockPosition blockposition, boolean flag, Entity entity, int i) { throw new UnsupportedOperationException("Not supported yet."); } - - @Override - public long ab() { - throw new UnsupportedOperationException("Not supported yet."); - } }