From cef26570483a5b0c82b5328a70c532fe3257afad Mon Sep 17 00:00:00 2001 From: SquidDev Date: Sun, 21 Jul 2019 10:28:22 +0100 Subject: [PATCH] Fix turtles being replaced by leaves And logs. Well, hopefully at least. Fixes #278 --- .../dan200/computercraft/shared/common/BlockGeneric.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java b/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java index 03e995463..f08b8521a 100644 --- a/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java +++ b/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java @@ -89,4 +89,10 @@ public abstract class BlockGeneric extends Block { return type.create(); } + + @Override + public boolean canBeReplacedByLeaves( BlockState state, IWorldReader world, BlockPos pos ) + { + return false; + } }