From b8ee6a89fd17f377a356cdd88be1453389cc647f Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Tue, 8 Sep 2020 12:17:23 +1000 Subject: [PATCH] SPIGOT-6125: Grass path should only fade when it is invalid at that location --- nms-patches/BlockGrassPath.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nms-patches/BlockGrassPath.patch diff --git a/nms-patches/BlockGrassPath.patch b/nms-patches/BlockGrassPath.patch new file mode 100644 index 0000000000..94bb08c887 --- /dev/null +++ b/nms-patches/BlockGrassPath.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/server/BlockGrassPath.java ++++ b/net/minecraft/server/BlockGrassPath.java +@@ -31,6 +31,11 @@ + + @Override + public void tickAlways(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) { ++ // CraftBukkit start - do not fade if the block is valid here ++ if (iblockdata.canPlace(worldserver, blockposition)) { ++ return; ++ } ++ // CraftBukkit end + BlockSoil.fade(iblockdata, worldserver, blockposition); + } +