NEWS: Welcome to my new homepage! <3

fix: Fixed same bug in AutoBreakerModule - poppy - A feature-rich Minecraft plugin which enhances gaming experience

poppy

A feature-rich Minecraft plugin which enhances gaming experience
git clone git://192.168.2.2/poppy
Log | Files | Refs | README

commit e92cd397bd59426fedbf1e50f5f2fda3e5db4122
parent 8acdabfe2470cdebce606e1c0060872dcdbffa30
Author: chunksize <reisingerluca@gmail.com>
Date:   Sun,  5 Mar 2023 21:30:27 +0100

fix: Fixed same bug in AutoBreakerModule

Diffstat:
Msrc/poppy/modules/HopperSorterModule.java | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/poppy/modules/HopperSorterModule.java b/src/poppy/modules/HopperSorterModule.java @@ -30,12 +30,12 @@ public class HopperSorterModule implements Listener public void onInventoryMoveItem(InventoryMoveItemEvent event) { - if(event.getDestination().getLocation().clone() == null) + if(event.getDestination().getLocation() == null) { return; } - final Location targetHopperLocation = event.getDestination().getLocation().clone(); + final Location targetHopperLocation = event.getDestination().getLocation(); final Block targetHopper = targetHopperLocation.getBlock(); if(targetHopper.getType() != Material.HOPPER)