Fixed large crate bug
This commit is contained in:
parent
815e26818e
commit
4fbea4c94e
5 changed files with 7 additions and 10 deletions
|
@ -1 +1 @@
|
|||
80
|
||||
81
|
||||
|
|
3
info.txt
3
info.txt
|
@ -71,4 +71,5 @@ x AssemblyLine_v0.2.4.64.jar AssemblyLine_v0.2.4.64_api.zip
|
|||
* AssemblyLine_v0.2.5.76.jar AssemblyLine_v0.2.5.76_api.zip
|
||||
@ AssemblyLine_v0.2.6.77.jar AssemblyLine_v0.2.6.77_api.zip
|
||||
@ AssemblyLine_v0.2.6.79.jar AssemblyLine_v0.2.6.79_api.zip
|
||||
* AssemblyLine_v0.2.7.80.jar AssemblyLine_v0.2.7.80_api.zip
|
||||
@ AssemblyLine_v0.2.7.80.jar AssemblyLine_v0.2.7.80_api.zip
|
||||
* AssemblyLine_v0.2.7.81.jar AssemblyLine_v0.2.7.81_api.zip
|
||||
|
|
|
@ -100,7 +100,6 @@ public class AssemblyLine
|
|||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
FMLog.setParent(FMLLog.getLogger());
|
||||
FMLog.info("Initializing...");
|
||||
UniversalElectricity.register(this, 1, 2, 6, false);
|
||||
instance = this;
|
||||
|
||||
|
@ -144,10 +143,9 @@ public class AssemblyLine
|
|||
@Init
|
||||
public void load(FMLInitializationEvent evt)
|
||||
{
|
||||
FMLog.info("Loading...");
|
||||
proxy.init();
|
||||
GrabDictionary.registerList();
|
||||
|
||||
|
||||
FMLog.info("Loaded: " + TranslationHelper.loadLanguages(LANGUAGE_PATH, LANGUAGES_SUPPORTED) + " languages.");
|
||||
|
||||
// Crane Controller
|
||||
|
@ -191,8 +189,6 @@ public class AssemblyLine
|
|||
|
||||
// Manipulator
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(blockManipulator, 2), new Object[] { Block.dispenser, "basicCircuit" }));
|
||||
|
||||
FMLog.info("Ready to Use");
|
||||
}
|
||||
|
||||
public static void printSidedData(String data)
|
||||
|
|
|
@ -385,7 +385,7 @@ public class BlockCrate extends BlockMachine
|
|||
double var7 = (double) (world.rand.nextFloat() * var6) + (double) (1.0F - var6) * 0.5D;
|
||||
double var9 = (double) (world.rand.nextFloat() * var6) + (double) (1.0F - var6) * 0.5D;
|
||||
double var11 = (double) (world.rand.nextFloat() * var6) + (double) (1.0F - var6) * 0.5D;
|
||||
ItemStack dropStack = new ItemStack(this, 1);
|
||||
ItemStack dropStack = new ItemStack(this, 1, tileEntity.getTier());
|
||||
ItemBlockCrate.setContainingItemStack(dropStack, containingStack);
|
||||
EntityItem var13 = new EntityItem(world, (double) x + var7, (double) y + var9, (double) z + var11, dropStack);
|
||||
var13.delayBeforeCanPickup = 10;
|
||||
|
|
|
@ -99,9 +99,9 @@ public class ItemBlockCrate extends ItemBlock
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getMetadata(int par1)
|
||||
public int getMetadata(int metadata)
|
||||
{
|
||||
return par1;
|
||||
return metadata;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue