From aee1ade20ad272f6e97d5bfa3d4326ff8651eee6 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Wed, 5 Jun 2019 15:03:09 +0800 Subject: [PATCH] Patching again, remove dupe dupe checks Former-commit-id: d6398b7c7be3203a0b69f5ce7fe7064882c72080 [formerly 7655efe3a76895ea86fa2afb42d941f55ad82e81] Former-commit-id: 63dd952904d2c7bce4db6ad7d70ae0d3b3f33213 --- pom.xml | 2 +- .../maxgamer/quickshop/Shop/ContainerShop.java | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index df7fba890..575e83a5e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.maxgamer QuickShop - Reremake 1.4.4.10 + Reremake 1.4.4.11-SNAPSHOT diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java index df2d4887d..ea2f1d2e0 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java @@ -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(); } }