mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2025-01-02 18:28:58 +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.Block;
|
||||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
import net.minecraft.world.level.block.entity.BlockEntityType;
|
import net.minecraft.world.level.block.entity.BlockEntityType;
|
||||||
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
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() {
|
public void tick() {
|
||||||
if (removed || ++currentTick <= 20)
|
if (removed || ++currentTick <= 20)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user