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

This commit is contained in:
Brokkonaut 2020-09-08 12:17:23 +10:00 committed by md_5
parent a939fbdf0b
commit b8ee6a89fd
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

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