mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 23:01:07 +00:00
send block update after placing itemsadder blocks
This commit is contained in:
@@ -62,7 +62,10 @@ public class ItemAdderDataProvider extends ExternalDataProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processUpdate(@NotNull Engine engine, @NotNull Block block, @NotNull Identifier blockId) {
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user