mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Some useless code
Former-commit-id: 7d1cf4869939f2500903037f04567e2046a2f0cc [formerly b75082791110897dc7b21391c0fdcf03b4836bd0] Former-commit-id: 1a3d411bb12279233358bf32c0436aa5cdff94ad
This commit is contained in:
1 parent
7e8d5967d2
commit
f54417f7af
1 file changed
-9
@@ -43,8 +43,6 @@ public class BlockListener implements Listener {
|
||||
*/
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onPlace(BlockPlaceEvent e) {
|
||||
if (e.isCancelled())
|
||||
return;
|
||||
BlockState bs = e.getBlock().getState();
|
||||
if (bs instanceof DoubleChest == false)
|
||||
return;
|
||||
@@ -207,9 +205,6 @@ public class BlockListener implements Listener {
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onExplode(EntityExplodeEvent e) {
|
||||
if (e.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < e.blockList().size(); i++) {
|
||||
Block b = e.blockList().get(i);
|
||||
Shop shop = plugin.getShopManager().getShop(b.getLocation());
|
||||
@@ -226,9 +221,6 @@ public class BlockListener implements Listener {
|
||||
}
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockExplode(BlockExplodeEvent e) {
|
||||
if (e.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < e.blockList().size(); i++) {
|
||||
Block b = e.blockList().get(i);
|
||||
Shop shop = plugin.getShopManager().getShop(b.getLocation());
|
||||
@@ -249,7 +241,6 @@ public class BlockListener implements Listener {
|
||||
if (!plugin.display) {
|
||||
return;
|
||||
}
|
||||
|
||||
Block block = event.getBlock().getRelative(event.getDirection()).getRelative(BlockFace.DOWN);
|
||||
Shop shop = plugin.getShopManager().getShop(block.getLocation());
|
||||
if (shop != null) {
|
||||
|
||||
Reference in new issue
Block a user