Skip to content

Commit

Permalink
修复圣符卡门问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wode490390 committed Mar 3, 2024
1 parent 141483a commit a6e22be
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/cn/nukkit/level/Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -2438,6 +2438,30 @@ public boolean setBlock(int layer, BlockVector3 pos, Block block, boolean direct
return setBlock(layer, pos.getX(), pos.getY(), pos.getZ(), block, direct, update);
}

public boolean setBlock(int x, int y, int z, Block block) {
return setBlock(0, x, y, z, block);
}

public boolean setExtraBlock(int x, int y, int z, Block block) {
return setBlock(1, x, y, z, block);
}

public boolean setBlock(int layer, int x, int y, int z, Block block) {
return setBlock(layer, x, y, z, block, false);
}

public boolean setBlock(int x, int y, int z, Block block, boolean direct) {
return setBlock(0, x, y, z, block, direct);
}

public boolean setExtraBlock(int x, int y, int z, Block block, boolean direct) {
return setBlock(1, x, y, z, block, direct);
}

public boolean setBlock(int layer, int x, int y, int z, Block block, boolean direct) {
return setBlock(layer, x, y, z, block, direct, true);
}

public boolean setBlock(int x, int y, int z, Block block, boolean direct, boolean update) {
return setBlock(0, x, y, z, block, direct, update);
}
Expand Down

0 comments on commit a6e22be

Please sign in to comment.