Renamed method AboveMaxAge to isItemAboveMaxAge
This commit is contained in:
1 parent
1180af64a1
commit
5b7910b697
2 files changed
+2
-3
No files matched your search
+1
-2
@@ -24,7 +24,7 @@ public class AntiPlayerLootDespawn extends Appliance {
|
||||
);
|
||||
}
|
||||
|
||||
public boolean AboveMaxAge(Item item) {
|
||||
public boolean isItemAboveMaxAge(Item item) {
|
||||
ItemStack itemStack = item.getItemStack();
|
||||
|
||||
int cycles = itemStack.getPersistentDataContainer()
|
||||
@@ -35,7 +35,6 @@ public class AntiPlayerLootDespawn extends Appliance {
|
||||
);
|
||||
|
||||
item.setItemStack(itemStack);
|
||||
|
||||
return cycles > 0;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -14,6 +14,6 @@ class AntiPlayerLootDespawnListener extends ApplianceListener<AntiPlayerLootDesp
|
||||
|
||||
@EventHandler
|
||||
public void onItemDespawn(ItemDespawnEvent event) {
|
||||
event.setCancelled(this.getAppliance().AboveMaxAge(event.getEntity()));
|
||||
event.setCancelled(this.getAppliance().isItemAboveMaxAge(event.getEntity()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user