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

@ -348,6 +348,11 @@ public class FactionsPlayerListener extends PlayerListener{
FLocation loc = new FLocation(block); FLocation loc = new FLocation(block);
Faction otherFaction = Board.getFactionAt(loc); 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. // We only care about some material types.
if (otherFaction.hasPlayersOnline()){ if (otherFaction.hasPlayersOnline()){
if ( ! Conf.territoryProtectedMaterials.contains(material)) { if ( ! Conf.territoryProtectedMaterials.contains(material)) {

View File

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