mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-02 11:12:28 +01:00
Try to paste the base block as well.
This commit is contained in:
parent
082f8de957
commit
7bdb3b2189
@ -115,7 +115,10 @@ public class ItemsAdderHook extends Hook {
|
|||||||
* @param location The location to place the CustomBlock
|
* @param location The location to place the CustomBlock
|
||||||
*/
|
*/
|
||||||
public static void place(String namespacedId, Location loc) {
|
public static void place(String namespacedId, Location loc) {
|
||||||
CustomBlock.place(namespacedId, loc);
|
BentoBox.getInstance().logDebug(
|
||||||
|
"placing " + namespacedId + " at " + loc + " with result = ");
|
||||||
|
CustomBlock cb = CustomBlock.place(namespacedId, loc);
|
||||||
|
BentoBox.getInstance().logDebug(cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -11,10 +11,8 @@ import org.bukkit.craftbukkit.v1_21_R3.block.data.CraftBlockData;
|
|||||||
import net.minecraft.core.BlockPosition;
|
import net.minecraft.core.BlockPosition;
|
||||||
import net.minecraft.world.level.block.state.IBlockData;
|
import net.minecraft.world.level.block.state.IBlockData;
|
||||||
import net.minecraft.world.level.chunk.Chunk;
|
import net.minecraft.world.level.chunk.Chunk;
|
||||||
import world.bentobox.bentobox.BentoBox;
|
|
||||||
import world.bentobox.bentobox.blueprints.dataobjects.BlueprintBlock;
|
import world.bentobox.bentobox.blueprints.dataobjects.BlueprintBlock;
|
||||||
import world.bentobox.bentobox.database.objects.Island;
|
import world.bentobox.bentobox.database.objects.Island;
|
||||||
import world.bentobox.bentobox.hooks.ItemsAdderHook;
|
|
||||||
import world.bentobox.bentobox.nms.PasteHandler;
|
import world.bentobox.bentobox.nms.PasteHandler;
|
||||||
import world.bentobox.bentobox.util.DefaultPasteUtil;
|
import world.bentobox.bentobox.util.DefaultPasteUtil;
|
||||||
import world.bentobox.bentobox.util.Util;
|
import world.bentobox.bentobox.util.Util;
|
||||||
|
Loading…
Reference in New Issue
Block a user