Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified libs/craftbukkit.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions src/com/ktipr/kttools/KtChestCount.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class KtChestCount {
static final int ERROR_ZONE_SIZE = -8;
static final int ERROR_AMBIGUOUS_ZONE = -9;

static final int MAX_ZONE_SIZE = 50000 * 2;
static final int MAX_ZONE_SIZE = 50000;

private final Logger log = Logger.getLogger("Minecraft");

Expand Down Expand Up @@ -114,7 +114,7 @@ public boolean chestcountCommand(CommandSender sender, String[] args) {
ktTools.getZonesPlugin().getZoneManager().setSelected(player.getEntityId(), b.getId());
}

if(b.getForm().getSize() >= MAX_ZONE_SIZE) {
if(b.getForm().getSize() >= (MAX_ZONE_SIZE * 2)) {
player.sendMessage(ChatColor.RED + "Zone too big");
return true;
}
Expand Down Expand Up @@ -350,7 +350,7 @@ public int updateSign(Block b, Player player, String[] lines) {
//sign.setLine(2, zone.getName());
//sign.update();

if (zone.getForm().getSize() >= MAX_ZONE_SIZE) {
if (zone.getForm().getSize() >= (player != null ? (MAX_ZONE_SIZE*2) : MAX_ZONE_SIZE )) {
sign.setLine(3, ChatColor.DARK_RED + "TOO BIG ZONE!");
sign.update();
return ERROR_ZONE_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion src/com/ktipr/kttools/KtTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void blockRotate(EasyBindEvent event) {
break;
case STEP:
case WOOD_STEP:
int val = target.getType().getId();
int val = target.getTypeId();
target.setTypeIdAndData(val, (byte) (data ^ 0x8), true);
break;
case LOG:
Expand Down