mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-23 21:46:25 +01:00
Merge branch 'mc1.15/v0.2.x' into mc1.15/dev
This commit is contained in:
commit
cf80822024
1 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,7 @@ import java.util.Collections;
|
|||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import com.simibubi.create.content.contraptions.base.KineticTileEntity;
|
||||
import org.apache.commons.lang3.mutable.MutableInt;
|
||||
|
||||
import com.simibubi.create.AllBlocks;
|
||||
|
@ -261,8 +262,7 @@ public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEnt
|
|||
return ActionResultType.SUCCESS;
|
||||
if (!player.isCreative())
|
||||
heldItem.shrink(1);
|
||||
world.setBlockState(pos, state.with(PART, BeltPart.PULLEY), 2);
|
||||
belt.attachKinetics();
|
||||
KineticTileEntity.switchToBlockState(world, pos, state.with(PART, BeltPart.PULLEY));
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue