mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-12-21 16:38:42 +01:00
Fixed errors when placing chunk loaders due to invalid block state (#107)
This commit is contained in:
parent
8e97c86174
commit
551a81d5c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user