mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Patching again, remove dupe dupe checks
Former-commit-id: d6398b7c7be3203a0b69f5ce7fe7064882c72080 [formerly 7655efe3a76895ea86fa2afb42d941f55ad82e81] Former-commit-id: 63dd952904d2c7bce4db6ad7d70ae0d3b3f33213
This commit is contained in:
1 parent
142dece20c
commit
aee1ade20a
2 files changed
+9
-8
No files matched your search
@@ -741,21 +741,22 @@ public class ContainerShop implements Shop {
|
||||
disItem.spawn();
|
||||
return;
|
||||
}
|
||||
if (disItem.getItem().isDead() || !disItem.getItem().isValid()) {
|
||||
disItem.remove();
|
||||
disItem.removeDupe();
|
||||
disItem.spawn();
|
||||
return;
|
||||
}
|
||||
// if (disItem.getItem().isDead() || !disItem.getItem().isValid()) {
|
||||
// disItem.remove();
|
||||
// disItem.removeDupe();
|
||||
// disItem.spawn();
|
||||
// return;
|
||||
// }
|
||||
Item item = disItem.getItem();
|
||||
|
||||
if (item.getTicksLived() > 5000 || !item.isValid() || item.isDead()) {
|
||||
disItem.remove();
|
||||
disItem.respawn();
|
||||
disItem.removeDupe();
|
||||
} else if (checkDisplayMoved()) {
|
||||
item.teleport(dispLoc, TeleportCause.PLUGIN);
|
||||
}
|
||||
|
||||
disItem.removeDupe();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user