SPIGOT-6125: Grass path should only fade when it is invalid at that location

By: Brokkonaut <hannos17@gmx.de>
This commit is contained in:
CraftBukkit/Spigot 2020-09-08 12:17:23 +10:00
parent b2539c31e6
commit ae8717b151

View File

@ -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);
}