Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wensheng committed Aug 8, 2019
1 parent ac8ea0c commit e882f41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ protected void handleCommand(String c, String[] args) {
} else if (c.equals("world.setBlocks")) {
Location loc1 = parseRelativeBlockLocation(args[0], args[1], args[2]);
Location loc2 = parseRelativeBlockLocation(args[3], args[4], args[5]);
Material blockType = Material.matchMaterial(args[6]);
Material material = Material.matchMaterial(args[6]);
if(material == null){
material = Material.valueOf("SANDSTONE");
}
int facing = args.length > 7? Integer.parseInt(args[7]): 0;
BlockFace blockFace = BlockFace.values()[facing];
setCuboid(loc1, loc2, blockType, blockFace);
setCuboid(loc1, loc2, material, blockFace);

// world.getPlayerIds
} else if (c.equals("world.getPlayerIds")) {
Expand Down

0 comments on commit e882f41

Please sign in to comment.