Fix more deprecations.

This commit is contained in:
raoulvdberge
2020-09-05 14:39:03 +02:00
parent d3818bcb98
commit 8c84e703c1
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ public class GridRecipeTransferHandler implements IRecipeTransferHandler<GridCon
}
@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();
if (doTransfer) {

View File

@@ -34,8 +34,8 @@ public class WrenchItem extends Item {
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;
}
}
}