Compiles again.

This commit is contained in:
Sebastian Hartte
2020-07-27 23:50:28 +02:00
parent 56ecda5173
commit 84e6aaa122
136 changed files with 1004 additions and 1108 deletions
@@ -426,7 +426,7 @@ public class MolecularAssemblerTileEntity extends AENetworkInvTileEntity
final IAEItemStack item = AEItemStack.fromItemStack(output);
if (item != null) {
final TargetPoint where = new TargetPoint(this.pos.getX(), this.pos.getY(), this.pos.getZ(), 32,
this.world.func_230315_m_());
this.world);
NetworkHandler.instance()
.sendToAllAround(new AssemblerAnimationPacket(this.pos, (byte) speed, item), where);
}
@@ -26,6 +26,7 @@ import net.minecraft.nbt.CompoundNBT;
import net.minecraft.tileentity.TileEntityType;
import net.minecraft.util.Direction;
import net.minecraft.world.World;
import net.minecraft.world.server.ServerWorld;
import net.minecraftforge.items.IItemHandler;
import appeng.api.config.Actionable;
@@ -115,6 +116,11 @@ public class SpatialIOPortTileEntity extends AENetworkInvTileEntity implements I
@Override
public Void call(final World world) throws Exception {
if (!(this.world instanceof ServerWorld)) {
return null;
}
ServerWorld serverWorld = (ServerWorld) this.world;
final ItemStack cell = this.inv.getStackInSlot(0);
if (this.isSpatialCell(cell) && this.inv.getStackInSlot(1).isEmpty()) {
final IGrid gi = this.getProxy().getGrid();
@@ -134,7 +140,7 @@ public class SpatialIOPortTileEntity extends AENetworkInvTileEntity implements I
playerId = this.getProxy().getSecurity().getOwner();
}
final TransitionResult tr = sc.doSpatialTransition(cell, this.world, spc.getMin(), spc.getMax(),
final TransitionResult tr = sc.doSpatialTransition(cell, serverWorld, spc.getMin(), spc.getMax(),
playerId);
if (tr.success) {
energy.extractAEPower(req, Actionable.MODULATE, PowerMultiplier.CONFIG);
@@ -71,11 +71,6 @@ public class SkyChestTileEntity extends AEBaseInvTileEntity implements ITickable
return c; // TESR yo!
}
@Override
public boolean canRenderBreaking() {
return true;
}
@Override
public IItemHandler getInternalInventory() {
return this.inv;