Update mappings to stable_39-1.12 (#322)
This commit is contained in:
@@ -100,7 +100,7 @@ public abstract class AEBaseInvTile extends AEBaseTile implements IAEAppEngInven
|
||||
if (this.hasCustomInventoryName()) {
|
||||
return new TextComponentString(this.getCustomInventoryName());
|
||||
}
|
||||
return new TextComponentTranslation(this.getBlockType().getUnlocalizedName());
|
||||
return new TextComponentTranslation(this.getBlockType().getTranslationKey());
|
||||
}
|
||||
|
||||
protected @Nonnull
|
||||
|
||||
@@ -406,7 +406,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
||||
}
|
||||
}
|
||||
|
||||
return output.hasNoTags() ? null : output;
|
||||
return output.isEmpty()? null : output;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -134,17 +134,17 @@ public class TileCrank extends AEBaseTile implements ICustomCollision, ITickable
|
||||
|
||||
@Override
|
||||
public Iterable<AxisAlignedBB> getSelectedBoundingBoxesFromPool(final World w, final BlockPos pos, final Entity thePlayer, final boolean b) {
|
||||
final double xOff = -0.15 * this.getUp().getFrontOffsetX();
|
||||
final double yOff = -0.15 * this.getUp().getFrontOffsetY();
|
||||
final double zOff = -0.15 * this.getUp().getFrontOffsetZ();
|
||||
final double xOff = -0.15 * this.getUp().getXOffset();
|
||||
final double yOff = -0.15 * this.getUp().getYOffset();
|
||||
final double zOff = -0.15 * this.getUp().getZOffset();
|
||||
return Collections.singletonList(new AxisAlignedBB(xOff + 0.15, yOff + 0.15, zOff + 0.15, xOff + 0.85, yOff + 0.85, zOff + 0.85));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCollidingBlockToList(final World w, final BlockPos pos, final AxisAlignedBB bb, final List<AxisAlignedBB> out, final Entity e) {
|
||||
final double xOff = -0.15 * this.getUp().getFrontOffsetX();
|
||||
final double yOff = -0.15 * this.getUp().getFrontOffsetY();
|
||||
final double zOff = -0.15 * this.getUp().getFrontOffsetZ();
|
||||
final double xOff = -0.15 * this.getUp().getXOffset();
|
||||
final double yOff = -0.15 * this.getUp().getYOffset();
|
||||
final double zOff = -0.15 * this.getUp().getZOffset();
|
||||
out.add(new AxisAlignedBB(xOff + 0.15, yOff + 0.15, zOff + 0.15, // ahh
|
||||
xOff + 0.85, yOff + 0.85, zOff + 0.85));
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class TileSpatialIOPort extends AENetworkInvTile implements IWorldCallabl
|
||||
}
|
||||
|
||||
public void updateRedstoneState() {
|
||||
final YesNo currentState = this.world.isBlockIndirectlyGettingPowered(this.pos) != 0 ? YesNo.YES : YesNo.NO;
|
||||
final YesNo currentState = this.world.getRedstonePowerFromNeighbors(this.pos) != 0 ? YesNo.YES : YesNo.NO;
|
||||
if (this.lastRedstoneState != currentState) {
|
||||
this.lastRedstoneState = currentState;
|
||||
if (this.lastRedstoneState == YesNo.YES) {
|
||||
|
||||
@@ -142,7 +142,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
|
||||
}
|
||||
|
||||
public void updateRedstoneState() {
|
||||
final YesNo currentState = this.world.isBlockIndirectlyGettingPowered(this.pos) != 0 ? YesNo.YES : YesNo.NO;
|
||||
final YesNo currentState = this.world.getRedstonePowerFromNeighbors(this.pos) != 0 ? YesNo.YES : YesNo.NO;
|
||||
if (this.lastRedstoneState != currentState) {
|
||||
this.lastRedstoneState = currentState;
|
||||
this.updateTask();
|
||||
|
||||
Reference in New Issue
Block a user