Merge branch 'mc1.15/v0.2.x' into mc1.15/dev

This commit is contained in:
simibubi 2020-07-10 12:47:36 +02:00
commit cf80822024

View file

@ -5,6 +5,7 @@ import java.util.Collections;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import com.simibubi.create.content.contraptions.base.KineticTileEntity;
import org.apache.commons.lang3.mutable.MutableInt; import org.apache.commons.lang3.mutable.MutableInt;
import com.simibubi.create.AllBlocks; import com.simibubi.create.AllBlocks;
@ -261,8 +262,7 @@ public class BeltBlock extends HorizontalKineticBlock implements ITE<BeltTileEnt
return ActionResultType.SUCCESS; return ActionResultType.SUCCESS;
if (!player.isCreative()) if (!player.isCreative())
heldItem.shrink(1); heldItem.shrink(1);
world.setBlockState(pos, state.with(PART, BeltPart.PULLEY), 2); KineticTileEntity.switchToBlockState(world, pos, state.with(PART, BeltPart.PULLEY));
belt.attachKinetics();
return ActionResultType.SUCCESS; return ActionResultType.SUCCESS;
} }