mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 12:11:47 +01:00
Fix porting issue in World.mayPlace Fixes BUKKIT-915
This commit is contained in:
parent
82f2a2e773
commit
2510af0d1a
1 changed files with 1 additions and 1 deletions
|
@ -2555,7 +2555,7 @@ public class World implements IBlockAccess {
|
|||
if (axisalignedbb != null && !this.containsEntity(axisalignedbb)) {
|
||||
defaultReturn = false; // CraftBukkit
|
||||
} 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue