Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
SPIGOT-6125: Grass path should only fade when it is invalid at that location
Dieser Commit ist enthalten in:
Ursprung
a939fbdf0b
Commit
b8ee6a89fd
14
nms-patches/BlockGrassPath.patch
Normale Datei
14
nms-patches/BlockGrassPath.patch
Normale Datei
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren