mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
i have a headache
This commit is contained in:
parent
ef5059a9a6
commit
345fe2ef06
@ -43,4 +43,5 @@
|
||||
* Fixed artillery shells not playing the explosion animation when directly impacting entities
|
||||
* Fixed bauxite and malachite vein toggles being on backwards
|
||||
* Fixed pneumatic tube order settings not saving
|
||||
* Fixed crash caused by launching ABMs with blank target designators
|
||||
* Fixed crash caused by launching ABMs with blank target designators
|
||||
* Fixed particle source throwing errors when trying to save nonexistant particles
|
||||
|
||||
@ -97,11 +97,10 @@ public class ItemRenderLibrary {
|
||||
|
||||
renderers.put(Item.getItemFromBlock(ModBlocks.machine_reactor_breeding), new ItemRenderBase() {
|
||||
public void renderInventory() {
|
||||
GL11.glTranslated(0, -4, 0);
|
||||
GL11.glTranslated(0, -4.5, 0);
|
||||
GL11.glScaled(4.5, 4.5, 4.5);
|
||||
}
|
||||
public void renderCommon() {
|
||||
GL11.glScaled(0.5, 0.5, 0.5);
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
GL11.glDisable(GL11.GL_CULL_FACE);
|
||||
bindTexture(ResourceManager.breeder_tex); ResourceManager.breeder.renderAll();
|
||||
|
||||
@ -40,8 +40,6 @@ public class RenderBreeder extends TileEntitySpecialRenderer {
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
GL11.glScaled(0.5, 0.5, 0.5);
|
||||
|
||||
bindTexture(ResourceManager.breeder_tex);
|
||||
|
||||
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||
|
||||
@ -236,23 +236,26 @@ public class TileEntityPASource extends TileEntityCooledBase implements IGUIProv
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
NBTTagCompound particleTag = new NBTTagCompound();
|
||||
particleTag.setInteger("x", particle.x);
|
||||
particleTag.setInteger("y", particle.y);
|
||||
particleTag.setInteger("z", particle.z);
|
||||
particleTag.setByte("dir", (byte) particle.dir.ordinal());
|
||||
particleTag.setInteger("momentum", particle.momentum);
|
||||
particleTag.setInteger("defocus", particle.defocus);
|
||||
particleTag.setInteger("dist", particle.distanceTraveled);
|
||||
|
||||
NBTTagCompound inputTag1 = new NBTTagCompound();
|
||||
NBTTagCompound inputTag2 = new NBTTagCompound();
|
||||
particle.input1.writeToNBT(inputTag1);
|
||||
particle.input2.writeToNBT(inputTag2);
|
||||
|
||||
particleTag.setTag("input1", inputTag1);
|
||||
particleTag.setTag("input2", inputTag2);
|
||||
nbt.setTag("particle", particleTag);
|
||||
|
||||
if(particle != null) {
|
||||
NBTTagCompound particleTag = new NBTTagCompound();
|
||||
particleTag.setInteger("x", particle.x);
|
||||
particleTag.setInteger("y", particle.y);
|
||||
particleTag.setInteger("z", particle.z);
|
||||
particleTag.setByte("dir", (byte) particle.dir.ordinal());
|
||||
particleTag.setInteger("momentum", particle.momentum);
|
||||
particleTag.setInteger("defocus", particle.defocus);
|
||||
particleTag.setInteger("dist", particle.distanceTraveled);
|
||||
|
||||
NBTTagCompound inputTag1 = new NBTTagCompound();
|
||||
NBTTagCompound inputTag2 = new NBTTagCompound();
|
||||
particle.input1.writeToNBT(inputTag1);
|
||||
particle.input2.writeToNBT(inputTag2);
|
||||
|
||||
particleTag.setTag("input1", inputTag1);
|
||||
particleTag.setTag("input2", inputTag2);
|
||||
nbt.setTag("particle", particleTag);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user