geforkt von Mirrors/FastAsyncWorldEdit
Boost TileEntity clear performance, with extra boost on Paper
Dieser Commit ist enthalten in:
Ursprung
14c0d4a5e8
Commit
e8169afd64
@ -248,8 +248,12 @@ public class BukkitWorld extends AbstractWorld {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean clearContainerBlockContents(BlockVector3 pt) {
|
public boolean clearContainerBlockContents(BlockVector3 pt) {
|
||||||
|
checkNotNull(pt);
|
||||||
|
if (getBlock(pt).getBlockType().getMaterial().hasContainer()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Block block = getWorld().getBlockAt(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
Block block = getWorld().getBlockAt(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ());
|
||||||
BlockState state = block.getState();
|
BlockState state = PaperLib.getBlockState(block, false).getState();
|
||||||
if (!(state instanceof InventoryHolder)) {
|
if (!(state instanceof InventoryHolder)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren