geforkt von Mirrors/Paper
Don't allow explosions at the top of the world to wrap around. This fixes BUKKIT-232, thanks to wilsonsd for the PR.
Dieser Commit ist enthalten in:
Ursprung
23adb0d02f
Commit
93b3c96126
@ -78,7 +78,7 @@ public class Explosion {
|
|||||||
f1 -= (Block.byId[k1].a(this.source) + 0.3F) * f2;
|
f1 -= (Block.byId[k1].a(this.source) + 0.3F) * f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f1 > 0.0F) {
|
if (f1 > 0.0F && i1 < world.height && i1 >= 0) { // CraftBukkit - Don't wrap explosions
|
||||||
this.blocks.add(new ChunkPosition(l, i1, j1));
|
this.blocks.add(new ChunkPosition(l, i1, j1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren