mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 12:05:53 +01:00
SPIGOT-6125: Grass path should only fade when it is invalid at that location
This commit is contained in:
parent
a939fbdf0b
commit
b8ee6a89fd
14
nms-patches/BlockGrassPath.patch
Normal file
14
nms-patches/BlockGrassPath.patch
Normal 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user