9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

send block update after placing itemsadder blocks

This commit is contained in:
Julian Krings
2025-09-10 17:01:29 +02:00
parent e5908285af
commit 2793ed1035

View File

@@ -62,7 +62,10 @@ public class ItemAdderDataProvider extends ExternalDataProvider {
@Override
public void processUpdate(@NotNull Engine engine, @NotNull Block block, @NotNull Identifier blockId) {
CustomBlock.place(blockId.toString(), block.getLocation());
CustomBlock custom;
if ((custom = CustomBlock.place(blockId.toString(), block.getLocation())) == null)
return;
block.setBlockData(custom.getBaseBlockData(), false);
}
@Override