Port to 1.11
This commit is contained in:
@@ -167,7 +167,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
|
||||
if( Platform.isWrench( player, eq, te.getPos() ) )
|
||||
{
|
||||
this.isLocked = !this.isLocked;
|
||||
player.addChatMessage( ( this.isLocked ? PlayerMessages.isNowLocked : PlayerMessages.isNowUnlocked ).get() );
|
||||
player.sendMessage( ( this.isLocked ? PlayerMessages.isNowLocked : PlayerMessages.isNowUnlocked ).get() );
|
||||
this.getHost().markForUpdate();
|
||||
}
|
||||
else if( !this.isLocked )
|
||||
|
||||
@@ -235,7 +235,7 @@ public abstract class AbstractPartReporting extends AEBasePart implements IPartM
|
||||
{
|
||||
super.onPlacement( player, hand, held, side );
|
||||
|
||||
final byte rotation = (byte) ( MathHelper.floor_double( ( player.rotationYaw * 4F ) / 360F + 2.5D ) & 3 );
|
||||
final byte rotation = (byte) ( MathHelper.floor( ( player.rotationYaw * 4F ) / 360F + 2.5D ) & 3 );
|
||||
if( side == AEPartLocation.UP )
|
||||
{
|
||||
this.spin = rotation;
|
||||
|
||||
@@ -118,7 +118,7 @@ public class PartConversionMonitor extends AbstractPartMonitor
|
||||
if( input.equals( targetStack ) )
|
||||
{
|
||||
final IAEItemStack insertItem = input.copy();
|
||||
insertItem.setStackSize( targetStack.stackSize );
|
||||
insertItem.setStackSize( targetStack.getCount() );
|
||||
final IAEItemStack failedToInsert = Platform.poweredInsert( energy, cell, insertItem, new PlayerSource( player, this ) );
|
||||
player.inventory.setInventorySlotContents( x, failedToInsert == null ? null : failedToInsert.getItemStack() );
|
||||
}
|
||||
@@ -167,7 +167,7 @@ public class PartConversionMonitor extends AbstractPartMonitor
|
||||
{
|
||||
final TileEntity te = this.getTile();
|
||||
final List<ItemStack> list = Collections.singletonList( newItems );
|
||||
Platform.spawnDrops( player.worldObj, te.getPos().offset( this.getSide().getFacing() ), list );
|
||||
Platform.spawnDrops( player.world, te.getPos().offset( this.getSide().getFacing() ), list );
|
||||
}
|
||||
|
||||
if( player.openContainer != null )
|
||||
|
||||
@@ -165,7 +165,7 @@ public class PartPatternTerminal extends AbstractPartTerminal
|
||||
final ItemStack is = this.crafting.getStackInSlot( x );
|
||||
if( is != null )
|
||||
{
|
||||
is.stackSize = 1;
|
||||
is.setCount( 1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user