PaperMC/paper-server/nms-patches/net/minecraft/world/level/block/BlockGrassPath.patch
CraftBukkit/Spigot 18496e998f Repackage patches
By: md_5 <git@md-5.net>
2021-03-16 09:00:00 +11:00

14 lines
521 B
Diff

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