3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 05:20:05 +01:00

Fix porting issue in World.mayPlace Fixes BUKKIT-915

Dieser Commit ist enthalten in:
Tahg 2012-03-01 21:26:00 -05:00
Ursprung 82f2a2e773
Commit 2510af0d1a

Datei anzeigen

@ -2555,7 +2555,7 @@ public class World implements IBlockAccess {
if (axisalignedbb != null && !this.containsEntity(axisalignedbb)) { if (axisalignedbb != null && !this.containsEntity(axisalignedbb)) {
defaultReturn = false; // CraftBukkit defaultReturn = false; // CraftBukkit
} else { } else {
if (block == Block.WATER || block == Block.STATIONARY_WATER || block == Block.LAVA || block == Block.STATIONARY_LAVA || block == Block.FIRE || block == Block.SNOW || block == Block.VINE) { if (block != null && (block == Block.WATER || block == Block.STATIONARY_WATER || block == Block.LAVA || block == Block.STATIONARY_LAVA || block == Block.FIRE || block.material.isReplacable())) {
block = null; block = null;
} }