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:
parent
f5e12e5014
commit
03764ad480
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user