big refactoring and better detection logic
Verifying Everything Compiles / build (push) Has been cancelled

This commit is contained in:
xoiox committed 2026-09-20 23:34:27 +02:00
1 parent 19dcbb3412
commit e0db794528
9 files changed
+187 -63

No files matched your search

@@ -28,14 +28,14 @@ public class RitualPlaceBlockEvent extends EntityEventSystem<EntityStore, PlaceB
@NonNullDecl Store<EntityStore> store,
@NonNullDecl CommandBuffer<EntityStore> commandBuffer,
@NonNullDecl PlaceBlockEvent placeBlockEvent) {
ItemStack itemHolding = placeBlockEvent.getItemInHand();
String itemId = "Empty";
if(itemHolding != null) {
itemId = itemHolding.getItemId();
}
Vector3i targetPosition = placeBlockEvent.getTargetBlock();
World world = store.getExternalData().getWorld();
ritualSpawner.blockChangeEvent(itemId, targetPosition, world);
Vector3i targetPosition = placeBlockEvent.getTargetBlock();
ItemStack itemHolding = placeBlockEvent.getItemInHand();
String blockId = "Empty";
if(itemHolding != null) {
blockId = itemHolding.getItemId();
}
ritualSpawner.blockChangeEvent(blockId, targetPosition, world, true);
}
@NullableDecl