mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Small performance improvement
This commit is contained in:
parent
7acee959ce
commit
f58d6aeff4
@ -29,6 +29,7 @@
|
||||
* Added Cocoa Organic Food
|
||||
* Added Cocoa Fertilizer
|
||||
* Added a configurable limit to the Pickaxe of Vein Mining
|
||||
* Added Gold Ingot to Dust recipe to the Electric Ingot Pulverizer
|
||||
|
||||
#### Changes
|
||||
* Fixed a few memory leaks
|
||||
@ -38,6 +39,7 @@
|
||||
* Crafting Organic Food/Fertilizer yields more output now
|
||||
* Organic Food (Melon) now uses Melon Slices instead of Melon blocks
|
||||
* The Seismic Axe now skips the first two blocks to clear your field of view
|
||||
* Small performance improvements
|
||||
|
||||
#### Fixes
|
||||
* Fixed Ore Washer recipes showing up twice
|
||||
|
@ -6,6 +6,7 @@ import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import io.github.thebusybiscuit.slimefun4.utils.SlimefunUtils;
|
||||
import io.github.thebusybiscuit.slimefun4.utils.itemstack.ItemStackWrapper;
|
||||
import me.mrCookieSlime.Slimefun.SlimefunPlugin;
|
||||
import me.mrCookieSlime.Slimefun.Lists.SlimefunItems;
|
||||
|
||||
@ -24,7 +25,7 @@ public class CargoNodeListener implements Listener {
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void onCargoNodePlace(BlockPlaceEvent e) {
|
||||
if (e.getBlock().getY() != e.getBlockAgainst().getY() && isCargoNode(e.getItemInHand())) {
|
||||
if (e.getBlock().getY() != e.getBlockAgainst().getY() && isCargoNode(new ItemStackWrapper(e.getItemInHand()))) {
|
||||
SlimefunPlugin.getLocal().sendMessage(e.getPlayer(), "machines.CARGO_NODES.must-be-placed", true);
|
||||
e.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user