mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
parent
51c919e4d8
commit
6baa519973
1 changed files with 3 additions and 3 deletions
|
@ -366,8 +366,6 @@ public class CartAssemblerBlock extends AbstractRailBlock
|
|||
@Override
|
||||
public void neighborChanged(@Nonnull BlockState state, @Nonnull World worldIn, @Nonnull BlockPos pos,
|
||||
@Nonnull Block blockIn, @Nonnull BlockPos fromPos, boolean isMoving) {
|
||||
super.neighborChanged(state, worldIn, pos, blockIn, fromPos, isMoving);
|
||||
|
||||
if (worldIn.isRemote)
|
||||
return;
|
||||
|
||||
|
@ -375,6 +373,8 @@ public class CartAssemblerBlock extends AbstractRailBlock
|
|||
if (previouslyPowered != worldIn.isBlockPowered(pos)) {
|
||||
worldIn.setBlockState(pos, state.cycle(POWERED), 2);
|
||||
}
|
||||
|
||||
super.neighborChanged(state, worldIn, pos, blockIn, fromPos, isMoving);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -439,7 +439,7 @@ public class CartAssemblerBlock extends AbstractRailBlock
|
|||
|
||||
@Override
|
||||
public ItemRequirement getRequiredItems(BlockState state) {
|
||||
ArrayList<ItemStack> reuiredItems = new ArrayList<ItemStack>();
|
||||
ArrayList<ItemStack> reuiredItems = new ArrayList<>();
|
||||
reuiredItems.add(new ItemStack(getRailItem(state)));
|
||||
reuiredItems.add(new ItemStack(asItem()));
|
||||
return new ItemRequirement(ItemUseType.CONSUME, reuiredItems);
|
||||
|
|
Loading…
Reference in a new issue