Skip to content

Commit c1cdc90

Browse files
committed
Update BlockBreakEventListener.java
1 parent 44c9d8e commit c1cdc90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/us/thezircon/play/autopickup/listeners/BlockBreakEventListener.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ public void run() {
131131
}
132132
}.runTaskLater(PLUGIN, 1);
133133

134+
///////////////////////////////////// Custom items \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
135+
String key = loc.getBlockX()+";"+loc.getBlockY()+";"+loc.getBlockZ()+";"+loc.getWorld();
136+
AutoPickup.customItemPatch.put(key, new PickupObjective(loc, player, Instant.now()));
137+
///////////////////////////////////////////////////////////////////////////////////////
138+
134139
// Mend Items & Give Player XP
135140
int xp = e.getExpToDrop();
136141
player.giveExp(xp); // Give player XP
@@ -147,11 +152,6 @@ public void run() {
147152
}
148153
e.setExpToDrop(0); // Remove default XP
149154

150-
///////////////////////////////////// Custom items \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
151-
String key = loc.getBlockX()+";"+loc.getBlockY()+";"+loc.getBlockZ()+";"+loc.getWorld();
152-
AutoPickup.customItemPatch.put(key, new PickupObjective(loc, player, Instant.now()));
153-
///////////////////////////////////////////////////////////////////////////////////////
154-
155155
// Deal with Containers
156156
if (block.getState() instanceof Container) {
157157

@@ -179,7 +179,7 @@ public void run() {
179179

180180
// Peaceful Farms - PFMoreHoppers Patch
181181
if (block.getState() instanceof Hopper && AutoPickup.usingPFMoreHoppers) {
182-
NamespacedKey morePFHoppers = new NamespacedKey(PLUGIN.getServer().getPluginManager().getPlugin("PFMoreHoppers"), "pfmorehoppers:pfhopper-variant");
182+
NamespacedKey morePFHoppers = new NamespacedKey(PLUGIN.getServer().getPluginManager().getPlugin("PFMoreHoppers"), "PFHopper-Variant");
183183
Container con = (Container) block.getState();
184184
if (con.getPersistentDataContainer().getKeys().contains(morePFHoppers)) {
185185
return;

0 commit comments

Comments
 (0)