Merge pull request #1057 from LaxWasHere/patch-1
Use deprecated API for backwards compability
This commit is contained in:
commit
cca207c1a5
@ -408,8 +408,8 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
// Dupe fix.
|
// Dupe fix.
|
||||||
Faction myFaction = me.getFaction();
|
Faction myFaction = me.getFaction();
|
||||||
Relation rel = myFaction.getRelationTo(otherFaction);
|
Relation rel = myFaction.getRelationTo(otherFaction);
|
||||||
if (!rel.isMember() || !otherFaction.playerHasOwnershipRights(me, loc) && player.getInventory().getItemInMainHand() != null) {
|
if (!rel.isMember() || !otherFaction.playerHasOwnershipRights(me, loc) && player.getItemInHand() != null) {
|
||||||
switch (player.getInventory().getItemInMainHand().getType()) {
|
switch (player.getItemInHand().getType()) {
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case SIGN_POST:
|
case SIGN_POST:
|
||||||
case TRAPPED_CHEST:
|
case TRAPPED_CHEST:
|
||||||
|
Loading…
Reference in New Issue
Block a user