Skip to content

Commit 576c747

Browse files
authored
Merge pull request #52 from SaberSupe/master
Commented out checks for Filter and PFHoppers
2 parents a6a9d5d + 3f2c124 commit 576c747

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/main/java/us/thezircon/play/autopickup/AutoPickup.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public final class AutoPickup extends JavaPlugin {
3838
public static boolean usingWildChests = false; // WildChests - BG Development
3939
public static boolean usingMythicMobs = false; // MythicMobs
4040

41-
public static boolean usingPFHoppers = false; // Play.PeacefulFarms.Net
42-
public static boolean usingPFMoreHoppers = false; // Patch for PF
41+
//public static boolean usingPFHoppers = false; // Play.PeacefulFarms.Net
42+
//public static boolean usingPFMoreHoppers = false; // Patch for PF
4343

4444
public static boolean usingPlaceholderAPI = false; // Papi - clip
4545

@@ -110,13 +110,13 @@ public void onEnable() {
110110

111111
// Peaceful Farms - Hoppers Patch
112112
// PFHoppers
113-
if ((getServer().getPluginManager().getPlugin("PFHoppers") != null)) {
113+
/*if ((getServer().getPluginManager().getPlugin("PFHoppers") != null)) {
114114
usingPFHoppers = true;
115-
}
115+
}*/
116116
// PFMoreHoppers
117-
if ((getServer().getPluginManager().getPlugin("PFMoreHoppers") != null)) {
117+
/*if ((getServer().getPluginManager().getPlugin("PFMoreHoppers") != null)) {
118118
usingPFMoreHoppers = true;
119-
}
119+
}*/
120120

121121
messages = new Messages();
122122

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,22 +175,22 @@ public void run() {
175175
}
176176

177177
// Peaceful Farms - PFHoppers Patch
178-
if (block.getState() instanceof Hopper && AutoPickup.usingPFHoppers) {
178+
/*if (block.getState() instanceof Hopper && AutoPickup.usingPFHoppers) {
179179
Hopper hopper = (Hopper) block.getState();
180180
try {
181181
if (hopper.getCustomName().contains("PF Hopper"))
182182
return;
183183
} catch (NullPointerException ignored) {}
184-
}
184+
}*/
185185

186186
// Peaceful Farms - PFMoreHoppers Patch
187-
if (block.getState() instanceof Hopper && AutoPickup.usingPFMoreHoppers) {
187+
/*if (block.getState() instanceof Hopper && AutoPickup.usingPFMoreHoppers) {
188188
NamespacedKey morePFHoppers = new NamespacedKey(PLUGIN.getServer().getPluginManager().getPlugin("PFMoreHoppers"), "PFHopper-Variant");
189189
Container con = (Container) block.getState();
190190
if (con.getPersistentDataContainer().getKeys().contains(morePFHoppers)) {
191191
return;
192192
}
193-
}
193+
}*/
194194

195195
// WildChests patch
196196
if (AutoPickup.usingWildChests) {

0 commit comments

Comments
 (0)