Fixed errors when placing chunk loaders due to invalid block state (#107)

This commit is contained in:
OmerBenGera 2024-08-23 11:39:10 +03:00
parent 8e97c86174
commit 551a81d5c1

View File

@ -11,6 +11,7 @@ import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockState;
import java.util.ArrayList;
import java.util.Collection;
@ -80,6 +81,11 @@ public final class ChunkLoaderBlockEntity extends BlockEntity implements ITileEn
}
}
@Override
public boolean isValidBlockState(BlockState state) {
return true;
}
public void tick() {
if (removed || ++currentTick <= 20)
return;