mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 13:29:40 +00:00
Bump version, fixed Purification Chamber sounds, fixed empty Configurator mode
This commit is contained in:
1 parent
f277f49b92
commit
986ce14f2e
6 files changed
+21
-32
No files matched your search
@@ -161,32 +161,21 @@ public class ItemConfigurator extends ItemEnergized implements IMekWrench, ITool
|
||||
float yRandom = random.nextFloat() * 0.8F + 0.1F;
|
||||
float zRandom = random.nextFloat() * 0.8F + 0.1F;
|
||||
|
||||
while(slotStack.getCount() > 0)
|
||||
EntityItem item = new EntityItem(world, pos.getX() + xRandom, pos.getY() + yRandom, pos.getZ() + zRandom, slotStack.copy());
|
||||
|
||||
if(slotStack.hasTagCompound())
|
||||
{
|
||||
int j = random.nextInt(21) + 10;
|
||||
|
||||
if(j > slotStack.getCount())
|
||||
{
|
||||
j = slotStack.getCount();
|
||||
}
|
||||
|
||||
slotStack.shrink(j);
|
||||
EntityItem item = new EntityItem(world, pos.getX() + xRandom, pos.getY() + yRandom, pos.getZ() + zRandom, new ItemStack(slotStack.getItem(), j, slotStack.getItemDamage()));
|
||||
|
||||
if(slotStack.hasTagCompound())
|
||||
{
|
||||
item.getEntityItem().setTagCompound((NBTTagCompound)slotStack.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float k = 0.05F;
|
||||
item.motionX = random.nextGaussian() * k;
|
||||
item.motionY = random.nextGaussian() * k + 0.2F;
|
||||
item.motionZ = random.nextGaussian() * k;
|
||||
world.spawnEntity(item);
|
||||
|
||||
inv.setInventorySlotContents(i, ItemStack.EMPTY);
|
||||
setEnergy(stack, getEnergy(stack) - ENERGY_PER_ITEM_DUMP);
|
||||
item.getEntityItem().setTagCompound((NBTTagCompound)slotStack.getTagCompound().copy());
|
||||
}
|
||||
|
||||
float k = 0.05F;
|
||||
item.motionX = random.nextGaussian() * k;
|
||||
item.motionY = random.nextGaussian() * k + 0.2F;
|
||||
item.motionZ = random.nextGaussian() * k;
|
||||
world.spawnEntity(item);
|
||||
|
||||
inv.setInventorySlotContents(i, ItemStack.EMPTY);
|
||||
setEnergy(stack, getEnergy(stack) - ENERGY_PER_ITEM_DUMP);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user