mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 20:33:52 -07:00
Set world on fixed tile entity to avoid NPE. Addresses BUKKIT-3949
This commit is contained in:
@@ -139,6 +139,7 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate
|
||||
|
||||
if (Block.byId[type] instanceof BlockContainer) {
|
||||
TileEntity replacement = ((BlockContainer) Block.byId[type]).b(this);
|
||||
replacement.world = this;
|
||||
this.setTileEntity(x, y, z, replacement);
|
||||
return replacement;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user