mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 20:23:42 +01:00
Port recent changes
This commit is contained in:
parent
973576c030
commit
ed3df18a01
1 changed files with 3 additions and 3 deletions
|
@ -13,11 +13,11 @@ import net.minecraft.server.level.ServerLevel;
|
|||
import net.minecraft.world.item.context.BlockPlaceContext;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.LevelAccessor;
|
||||
import net.minecraft.world.level.TickList;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.StateDefinition.Builder;
|
||||
import net.minecraft.world.level.block.state.properties.BooleanProperty;
|
||||
import net.minecraft.world.ticks.LevelTickAccess;
|
||||
|
||||
public class ConnectedPillarBlock extends LayeredBlock {
|
||||
|
||||
|
@ -83,9 +83,9 @@ public class ConnectedPillarBlock extends LayeredBlock {
|
|||
public void onPlace(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) {
|
||||
if (pOldState.getBlock() == this)
|
||||
return;
|
||||
TickList<Block> blockTicks = pLevel.getBlockTicks();
|
||||
LevelTickAccess<Block> blockTicks = pLevel.getBlockTicks();
|
||||
if (!blockTicks.hasScheduledTick(pPos, this))
|
||||
blockTicks.scheduleTick(pPos, this, 1);
|
||||
pLevel.scheduleTick(pPos, this, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue