Bugfix release 1.4.9: material protection (interaction with doors, chests, etc.) was being incorrectly triggered in wilderness, war zones, and safe zones
This commit is contained in:
@ -347,7 +347,12 @@ public class FactionsPlayerListener extends PlayerListener{
|
||||
Material material = block.getType();
|
||||
FLocation loc = new FLocation(block);
|
||||
Faction otherFaction = Board.getFactionAt(loc);
|
||||
|
||||
|
||||
// no door/chest/whatever protection in wilderness, war zones, or safe zones
|
||||
if (!otherFaction.isNormal()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// We only care about some material types.
|
||||
if (otherFaction.hasPlayersOnline()){
|
||||
if ( ! Conf.territoryProtectedMaterials.contains(material)) {
|
||||
|
Reference in New Issue
Block a user