Untested but _should_ work.

File an Issue if it doesn't.

Signed-off-by: TheTechRobo <thetechrobo@protonmail.ch>
This commit is contained in:
TheTechRobo 2022-04-14 01:57:06 +00:00
parent 828bcebe44
commit 3c959cfa1f
1 changed files with 1 additions and 4 deletions

View File

@ -19,10 +19,7 @@ public class GiveSteakToPlayer implements Listener {
public boolean canPlayerGetSteak(Player p) {
PersistentDataContainer cont = p.getPersistentDataContainer();
NamespacedKey key = new NamespacedKey(this.pl, "canHasSteak");
if (cont.has(key))
return false;
else
return true;
return !(cont.has(key));
}
public void playerGotSteak(Player p) {
PersistentDataContainer cont = p.getPersistentDataContainer();