Migrations

This commit is contained in:
Sebastian Hartte
2020-06-27 16:18:20 +02:00
parent d638d083c2
commit ba71a82288
303 changed files with 1216 additions and 1210 deletions
+5 -5
View File
@@ -29,7 +29,7 @@ import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemUseContext;
import net.minecraft.tags.BlockTags;
import net.minecraft.util.ActionResultType;
import net.minecraft.util.ActionResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
@@ -47,9 +47,9 @@ public class EraserItem extends AEBaseItem {
}
@Override
public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) {
public ActionResult onItemUseFirst(ItemStack stack, ItemUseContext context) {
if (context.getWorld().isRemote()) {
return ActionResultType.PASS;
return ActionResult.PASS;
}
final PlayerEntity player = context.getPlayer();
@@ -57,7 +57,7 @@ public class EraserItem extends AEBaseItem {
final BlockPos pos = context.getPos();
if (player == null) {
return ActionResultType.PASS;
return ActionResult.PASS;
}
final Block state = world.getBlockState(pos).getBlock();
@@ -101,7 +101,7 @@ public class EraserItem extends AEBaseItem {
AELog.info("Delete " + blocks + " blocks");
return ActionResultType.SUCCESS;
return ActionResult.SUCCESS;
}
private boolean isInsideBox(BlockPos pos, BlockPos origin) {