From aa0ee38d5301c5d8dbd7811f845fda39b9426664 Mon Sep 17 00:00:00 2001 From: lijinhong11 Date: Fri, 15 Nov 2024 22:00:08 +0800 Subject: [PATCH] fix: rm network components --- .../java/me/mmmjjkx/betterChests/items/cargo/P2PTransfer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/mmmjjkx/betterChests/items/cargo/P2PTransfer.java b/src/main/java/me/mmmjjkx/betterChests/items/cargo/P2PTransfer.java index f08d1ae..b7ad370 100644 --- a/src/main/java/me/mmmjjkx/betterChests/items/cargo/P2PTransfer.java +++ b/src/main/java/me/mmmjjkx/betterChests/items/cargo/P2PTransfer.java @@ -5,6 +5,7 @@ import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType; import io.github.thebusybiscuit.slimefun4.core.handlers.BlockPlaceHandler; import me.mmmjjkx.betterChests.BCGroups; +import org.bukkit.block.BlockFace; import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; @@ -16,7 +17,8 @@ public P2PTransfer(SlimefunItemStack item, RecipeType recipeType, ItemStack[] re addItemHandler(new BlockPlaceHandler(false) { @Override public void onPlayerPlace(@NotNull BlockPlaceEvent e) { - + BlockFace f = e.getPlayer().getFacing(); + BlockFace dest = f.getOppositeFace(); } }); }