Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ee2ca72ac | |||
| 881bb919da | |||
| 5ecd68d5b6 | |||
| e2d0e5d424 | |||
| e3bf7d63c0 | |||
| 3fedcf273b | |||
| 8042dbb3db | |||
| e7e397c412 | |||
| ecc472a692 |
@@ -103,6 +103,9 @@ sourceSets {
|
|||||||
"assets/appliedenergistics2/textures/models/*",
|
"assets/appliedenergistics2/textures/models/*",
|
||||||
"assets/appliedenergistics2/textures/items/*"
|
"assets/appliedenergistics2/textures/items/*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IntelliJ and Gradle interaction bug
|
||||||
|
output.resourcesDir = output.classesDir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -162,8 +162,6 @@ public class AEBaseItemBlock extends ItemBlock
|
|||||||
forward = ForgeDirection.SOUTH;
|
forward = ForgeDirection.SOUTH;
|
||||||
if( up.offsetY == 0 )
|
if( up.offsetY == 0 )
|
||||||
forward = ForgeDirection.UP;
|
forward = ForgeDirection.UP;
|
||||||
|
|
||||||
ori.setOrientation( forward, up );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !this.blockType.isValidOrientation( w, x, y, z, forward, up ) )
|
if( !this.blockType.isValidOrientation( w, x, y, z, forward, up ) )
|
||||||
|
|||||||
@@ -301,19 +301,22 @@ public class ItemMultiPart extends AEBaseItem implements IPartItem, IItemGroup
|
|||||||
if( stack.getItem() == this )
|
if( stack.getItem() == this )
|
||||||
{
|
{
|
||||||
PartType pt = this.getTypeByStack( stack );
|
PartType pt = this.getTypeByStack( stack );
|
||||||
switch( pt )
|
if ( pt != null )
|
||||||
{
|
{
|
||||||
case ImportBus:
|
switch( pt )
|
||||||
importBus = true;
|
{
|
||||||
if( u == pt )
|
case ImportBus:
|
||||||
group = true;
|
importBus = true;
|
||||||
break;
|
if( u == pt )
|
||||||
case ExportBus:
|
group = true;
|
||||||
exportBus = true;
|
break;
|
||||||
if( u == pt )
|
case ExportBus:
|
||||||
group = true;
|
exportBus = true;
|
||||||
break;
|
if( u == pt )
|
||||||
default:
|
group = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ public abstract class AERootPoweredItem extends AEBaseItem implements IAEItemPow
|
|||||||
{
|
{
|
||||||
NBTTagCompound data = Platform.openNbtData( is );
|
NBTTagCompound data = Platform.openNbtData( is );
|
||||||
|
|
||||||
double currentStorage = data.getDouble( this.POWER_NBT_KEY );
|
double currentStorage = data.getDouble( POWER_NBT_KEY );
|
||||||
double maxStorage = this.getAEMaxPower( is );
|
double maxStorage = this.getAEMaxPower( is );
|
||||||
|
|
||||||
switch( op )
|
switch( op )
|
||||||
@@ -126,19 +126,19 @@ public abstract class AERootPoweredItem extends AEBaseItem implements IAEItemPow
|
|||||||
if( currentStorage > maxStorage )
|
if( currentStorage > maxStorage )
|
||||||
{
|
{
|
||||||
double diff = currentStorage - maxStorage;
|
double diff = currentStorage - maxStorage;
|
||||||
data.setDouble( this.POWER_NBT_KEY, maxStorage );
|
data.setDouble( POWER_NBT_KEY, maxStorage );
|
||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
data.setDouble( this.POWER_NBT_KEY, currentStorage );
|
data.setDouble( POWER_NBT_KEY, currentStorage );
|
||||||
return 0;
|
return 0;
|
||||||
case EXTRACT:
|
case EXTRACT:
|
||||||
if( currentStorage > adjustment )
|
if( currentStorage > adjustment )
|
||||||
{
|
{
|
||||||
currentStorage -= adjustment;
|
currentStorage -= adjustment;
|
||||||
data.setDouble( this.POWER_NBT_KEY, currentStorage );
|
data.setDouble( POWER_NBT_KEY, currentStorage );
|
||||||
return adjustment;
|
return adjustment;
|
||||||
}
|
}
|
||||||
data.setDouble( this.POWER_NBT_KEY, 0 );
|
data.setDouble( POWER_NBT_KEY, 0 );
|
||||||
return currentStorage;
|
return currentStorage;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
|||||||
private void updateHandler()
|
private void updateHandler()
|
||||||
{
|
{
|
||||||
this.myHandler.setBaseAccess( AccessRestriction.WRITE );
|
this.myHandler.setBaseAccess( AccessRestriction.WRITE );
|
||||||
;
|
|
||||||
this.myHandler.setWhitelist( this.getInstalledUpgrades( Upgrades.INVERTER ) > 0 ? IncludeExclude.BLACKLIST : IncludeExclude.WHITELIST );
|
this.myHandler.setWhitelist( this.getInstalledUpgrades( Upgrades.INVERTER ) > 0 ? IncludeExclude.BLACKLIST : IncludeExclude.WHITELIST );
|
||||||
this.myHandler.setPriority( this.priority );
|
this.myHandler.setPriority( this.priority );
|
||||||
|
|
||||||
|
|||||||
@@ -508,6 +508,4 @@ public final class MeteoritePlacer
|
|||||||
{
|
{
|
||||||
return this.settings;
|
return this.settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ public class ChunkOnly extends StandardWorld
|
|||||||
{
|
{
|
||||||
|
|
||||||
final Chunk target;
|
final Chunk target;
|
||||||
final int cx, cz;
|
final int cx;
|
||||||
|
final int cz;
|
||||||
int verticalBits = 0;
|
int verticalBits = 0;
|
||||||
|
|
||||||
public ChunkOnly( World w, int cx, int cz )
|
public ChunkOnly( World w, int cx, int cz )
|
||||||
|
|||||||
Reference in New Issue
Block a user