Try to paste the base block as well.

This commit is contained in:
tastybento 2025-02-24 20:22:24 -08:00
parent 082f8de957
commit 7bdb3b2189
2 changed files with 4 additions and 3 deletions

View File

@ -115,7 +115,10 @@ public class ItemsAdderHook extends Hook {
* @param location The location to place the CustomBlock
*/
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);
}
/**

View File

@ -11,10 +11,8 @@ import org.bukkit.craftbukkit.v1_21_R3.block.data.CraftBlockData;
import net.minecraft.core.BlockPosition;
import net.minecraft.world.level.block.state.IBlockData;
import net.minecraft.world.level.chunk.Chunk;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.blueprints.dataobjects.BlueprintBlock;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.hooks.ItemsAdderHook;
import world.bentobox.bentobox.nms.PasteHandler;
import world.bentobox.bentobox.util.DefaultPasteUtil;
import world.bentobox.bentobox.util.Util;