Proper block type detection & chunk data access
Some checks failed
Verifying Everything Compiles / build (push) Has been cancelled

This commit is contained in:
2026-09-13 02:26:06 +02:00
parent 2b0e178704
commit 5feb2b851f
3 changed files with 12 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import com.hypixel.hytale.component.CommandBuffer;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.component.query.Query;
import com.hypixel.hytale.server.core.event.events.ecs.PlaceBlockEvent;
import com.hypixel.hytale.server.core.universe.world.World;
import dev.hytalemodding.RitualSpawner;
import com.hypixel.hytale.component.system.EntityEventSystem;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
@@ -28,7 +29,8 @@ public class RitualPlaceBlockEvent extends EntityEventSystem<EntityStore, PlaceB
@NonNullDecl PlaceBlockEvent placeBlockEvent) {
String blockId = placeBlockEvent.getItemInHand().getItemId();
Vector3i targetPosition = placeBlockEvent.getTargetBlock();
ritualSpawner.blockChangeEvent(blockId, targetPosition);
World world = store.getExternalData().getWorld();
ritualSpawner.blockChangeEvent(blockId, targetPosition, world);
}
@NullableDecl