removed the disallowing of interaction in ClansGame.java if the block that the player is hitting, is a Clan's Home. This was messing up the other code for Clan Home bed stuff.

This commit is contained in:
NewGarbo 2015-11-18 08:40:24 +00:00
parent f5e12e5014
commit 03764ad480

View File

@ -370,6 +370,8 @@ public class ClansGame extends MiniPlugin
// Block Action
if (access == ClanRelation.NEUTRAL)
{
Location home = event.getClickedBlock() == null ? null : _clans.getClanUtility().getClanByClanName(_clans.getClanUtility().getClaim(event.getClickedBlock().getLocation()).Owner).getHome();
// Allow Field Chest
if (event.getClickedBlock().getTypeId() == 54)
{
@ -379,6 +381,12 @@ public class ClansGame extends MiniPlugin
}
}
// Allow Clan's Home
if (event.getClickedBlock().getLocation().equals(home))
{
return;
}
// Disallow
event.setCancelled(true);