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:
Brettflan 2011-09-15 09:12:24 -05:00
parent 584d6f2eb9
commit 443e083f23
2 changed files with 7 additions and 2 deletions

View File

@ -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)) {

View File

@ -1,5 +1,5 @@
name: Factions
version: 1.4.8
version: 1.4.9
main: com.massivecraft.factions.Factions
softdepend:
- Permissions