Fix more deprecations.
This commit is contained in:
@@ -32,7 +32,7 @@ public class GridRecipeTransferHandler implements IRecipeTransferHandler<GridCon
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IRecipeTransferError transferRecipe(@Nonnull GridContainer container, @Nonnull IRecipeLayout recipeLayout, @Nonnull PlayerEntity player, boolean maxTransfer, boolean doTransfer) {
|
public IRecipeTransferError transferRecipe(@Nonnull GridContainer container, Object recipe, @Nonnull IRecipeLayout recipeLayout, @Nonnull PlayerEntity player, boolean maxTransfer, boolean doTransfer) {
|
||||||
IGrid grid = container.getGrid();
|
IGrid grid = container.getGrid();
|
||||||
|
|
||||||
if (doTransfer) {
|
if (doTransfer) {
|
||||||
|
@@ -34,7 +34,7 @@ public class WrenchItem extends Item {
|
|||||||
|
|
||||||
BlockState state = ctx.getWorld().getBlockState(ctx.getPos());
|
BlockState state = ctx.getWorld().getBlockState(ctx.getPos());
|
||||||
|
|
||||||
ctx.getWorld().setBlockState(ctx.getPos(), state.rotate(Rotation.CLOCKWISE_90));
|
ctx.getWorld().setBlockState(ctx.getPos(), state.rotate(ctx.getWorld(), ctx.getPos(), Rotation.CLOCKWISE_90));
|
||||||
|
|
||||||
return ActionResultType.CONSUME;
|
return ActionResultType.CONSUME;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user