mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-12 15:26:39 +01:00
Merge branch 'Creators-of-Create:mc1.18/dev' into mc1.18/dev
This commit is contained in:
commit
d52065808c
2 changed files with 9 additions and 3 deletions
|
@ -2,6 +2,7 @@ package com.simibubi.create.content.contraptions.components.crank;
|
||||||
|
|
||||||
import com.jozufozu.flywheel.core.PartialModel;
|
import com.jozufozu.flywheel.core.PartialModel;
|
||||||
import com.simibubi.create.AllBlockPartials;
|
import com.simibubi.create.AllBlockPartials;
|
||||||
|
import com.simibubi.create.AllItems;
|
||||||
import com.simibubi.create.AllShapes;
|
import com.simibubi.create.AllShapes;
|
||||||
import com.simibubi.create.AllTileEntities;
|
import com.simibubi.create.AllTileEntities;
|
||||||
import com.simibubi.create.content.contraptions.base.DirectionalKineticBlock;
|
import com.simibubi.create.content.contraptions.base.DirectionalKineticBlock;
|
||||||
|
@ -74,7 +75,8 @@ public class HandCrankBlock extends DirectionalKineticBlock
|
||||||
return InteractionResult.PASS;
|
return InteractionResult.PASS;
|
||||||
|
|
||||||
withTileEntityDo(worldIn, pos, te -> te.turn(player.isShiftKeyDown()));
|
withTileEntityDo(worldIn, pos, te -> te.turn(player.isShiftKeyDown()));
|
||||||
player.causeFoodExhaustion(getRotationSpeed() * AllConfigs.SERVER.kinetics.crankHungerMultiplier.getF());
|
if(!player.getItemInHand(handIn).is(AllItems.EXTENDO_GRIP.get()))
|
||||||
|
player.causeFoodExhaustion(getRotationSpeed() * AllConfigs.SERVER.kinetics.crankHungerMultiplier.getF());
|
||||||
|
|
||||||
if (player.getFoodData()
|
if (player.getFoodData()
|
||||||
.getFoodLevel() == 0)
|
.getFoodLevel() == 0)
|
||||||
|
|
|
@ -44,6 +44,10 @@ public class GirderEncasedShaftBlock extends HorizontalAxisKineticBlock
|
||||||
|
|
||||||
public GirderEncasedShaftBlock(Properties properties) {
|
public GirderEncasedShaftBlock(Properties properties) {
|
||||||
super(properties);
|
super(properties);
|
||||||
|
registerDefaultState(super.defaultBlockState()
|
||||||
|
.setValue(WATERLOGGED, false)
|
||||||
|
.setValue(TOP, false)
|
||||||
|
.setValue(BOTTOM, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue