Use deprecated API for backwards compability
Fixes #1051 Fixes #1044 Web editor ain't that bad btw.
This commit is contained in:
parent
56214ad661
commit
34fc475819
@ -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