remove a few warnings
This commit is contained in:
1 parent
3bec43fbc8
commit
6ac249968a
41 files changed
+122
-137
No files matched your search
@@ -77,14 +77,14 @@ public abstract class PistonBlock_movableTEMixin extends FacingBlock
|
||||
@Inject(method = "move", at = @At(value = "INVOKE", shift = At.Shift.BEFORE,
|
||||
target = "Ljava/util/List;size()I", ordinal = 4),locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
private void onMove(World world_1, BlockPos blockPos_1, Direction direction_1, boolean boolean_1,
|
||||
CallbackInfoReturnable<Boolean> cir, BlockPos blockPos_2, PistonHandler pistonHandler_1,
|
||||
List<BlockPos> list_1, List<BlockState> list_2, List list_3, int int_2, BlockState blockStates_1[],
|
||||
Direction direction_2, Set set_1)
|
||||
CallbackInfoReturnable<Boolean> cir, BlockPos blockPos_2, PistonHandler pistonHandler_1,
|
||||
List<BlockPos> list_1, List<BlockState> list_2, List list_3, int int_2, BlockState[] blockStates_1,
|
||||
Direction direction_2, Set set_1)
|
||||
{
|
||||
//Get the blockEntities and remove them from the world before any magic starts to happen
|
||||
if (CarpetSettings.movableBlockEntities)
|
||||
{
|
||||
list1_BlockEntities.set(Lists.<BlockEntity>newArrayList());
|
||||
list1_BlockEntities.set(Lists.newArrayList());
|
||||
for (int i = 0; i < list_1.size(); ++i)
|
||||
{
|
||||
BlockPos blockpos = list_1.get(i);
|
||||
@@ -106,9 +106,9 @@ public abstract class PistonBlock_movableTEMixin extends FacingBlock
|
||||
"Lnet/minecraft/block/entity/BlockEntity;)V", ordinal = 0),
|
||||
locals = LocalCapture.CAPTURE_FAILHARD)
|
||||
private void setBlockEntityWithCarried(World world_1, BlockPos blockPos_1, Direction direction_1, boolean boolean_1,
|
||||
CallbackInfoReturnable<Boolean> cir, BlockPos blockPos_2, PistonHandler pistonHandler_1, List list_1,
|
||||
List list_2, List list_3, int int_2, BlockState blockStates_1[], Direction direction_2, Set set_1,
|
||||
int int_3, BlockPos blockPos_4, BlockState blockState_1)
|
||||
CallbackInfoReturnable<Boolean> cir, BlockPos blockPos_2, PistonHandler pistonHandler_1, List list_1,
|
||||
List list_2, List list_3, int int_2, BlockState[] blockStates_1, Direction direction_2, Set set_1,
|
||||
int int_3, BlockPos blockPos_4, BlockState blockState_1)
|
||||
{
|
||||
BlockEntity blockEntityPiston = PistonExtensionBlock.createBlockEntityPiston((BlockState) list_2.get(int_3),
|
||||
direction_1, boolean_1, false);
|
||||
|
||||
Reference in new issue
Block a user