First Working Worldgen of Meteorites

This commit is contained in:
Sebastian Hartte
2020-07-07 18:55:56 +02:00
parent f8ee4bb1f2
commit 2944873431
10 changed files with 81 additions and 51 deletions
@@ -60,8 +60,7 @@ public class SkyStoneBlock extends AEBaseBlock {
BlockPos currentPos, BlockPos facingPos) {
if (worldIn instanceof ServerWorld) {
ServerWorld serverWorld = (ServerWorld) worldIn;
WorldData.instance().compassData().service().updateArea(serverWorld, new ChunkPos(currentPos),
currentPos.getY());
WorldData.instance().compassData().service().notifyBlockChange(serverWorld, currentPos);
}
return super.getStateForNeighborUpdate(stateIn, facing, facingState, worldIn, currentPos, facingPos);
@@ -79,7 +78,7 @@ public class SkyStoneBlock extends AEBaseBlock {
if (w instanceof ServerWorld) {
ServerWorld serverWorld = (ServerWorld) w;
WorldData.instance().compassData().service().updateArea(serverWorld, new ChunkPos(pos), pos.getY());
WorldData.instance().compassData().service().notifyBlockChange(serverWorld, pos);
}
}