3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00
Paper/nms-patches/BlockGrassPath.patch

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