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.
|
||||
Faction myFaction = me.getFaction();
|
||||
Relation rel = myFaction.getRelationTo(otherFaction);
|
||||
if (!rel.isMember() || !otherFaction.playerHasOwnershipRights(me, loc) && player.getInventory().getItemInMainHand() != null) {
|
||||
switch (player.getInventory().getItemInMainHand().getType()) {
|
||||
if (!rel.isMember() || !otherFaction.playerHasOwnershipRights(me, loc) && player.getItemInHand() != null) {
|
||||
switch (player.getItemInHand().getType()) {
|
||||
case CHEST:
|
||||
case SIGN_POST:
|
||||
case TRAPPED_CHEST:
|
||||
|
Loading…
Reference in New Issue
Block a user