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:
parent
584d6f2eb9
commit
443e083f23
@ -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)) {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user