mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
removed setblock with the Minecraft block class as a parameter
This commit is contained in:
1 parent
0d2011b2ba
commit
f83487f67b
2 files changed
+3
-21
No files matched your search
@@ -102,14 +102,6 @@ public class ScriptWorld implements IWorld {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setBlock(int x, int y, int z, Block block){
|
||||
if(block == null || block.isAir(world, x, y, z)){
|
||||
removeBlock(x, y, z);
|
||||
return;
|
||||
}
|
||||
world.setBlock(x, y, z, block);
|
||||
}
|
||||
|
||||
public void setBlock(int x, int y, int z, IBlock block){
|
||||
if(block == null || block.getMCBlock().isAir(world, x, y, z)){
|
||||
removeBlock(x, y, z);
|
||||
|
||||
Reference in new issue
Block a user