Skip to content

Commit

Permalink
updated the protection and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Mar 27, 2015
1 parent 80da883 commit 6318716
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/sekwah/advancedportals/AdvancedPortalsCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String command, Stri
else if(args[0].toLowerCase().equals("portal") || args[0].toLowerCase().equals("portalblock")){
PlayerInventory inventory = player.getInventory();

ItemStack portalBlock = new ItemStack(Material.PORTAL);
ItemStack portalBlock = new ItemStack(Material.PORTAL, 1);

inventory.addItem(portalBlock);

Expand Down
1 change: 0 additions & 1 deletion src/com/sekwah/advancedportals/PortalProtect.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void onBlockBreak(BlockBreakEvent event){
if((portal.pos1.getX() + PortalProtectionRadius) >= block.getX() && (portal.pos1.getY() + PortalProtectionRadius) >= block.getY() && (portal.pos1.getZ() + PortalProtectionRadius) >= block.getZ()){

if((portal.pos2.getX() - PortalProtectionRadius) <= block.getX() && (portal.pos2.getY() - PortalProtectionRadius) <= block.getY() && (portal.pos2.getZ() - PortalProtectionRadius) <= block.getZ()){

event.setCancelled(true);
break;

Expand Down

0 comments on commit 6318716

Please sign in to comment.