i have a headache

This commit is contained in:
Bob 2025-05-18 21:37:41 +02:00
parent ef5059a9a6
commit 345fe2ef06
4 changed files with 23 additions and 22 deletions

View File

@ -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

View File

@ -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();

View File

@ -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);

View File

@ -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