Skip to content

Commit 12e2169

Browse files
committed
Some small fixes!
1 parent f9c3c6f commit 12e2169

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/main/java/at/chaosfield/openradio/common/entity/LaserEntity.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ public void onUpdate(){
139139
lastParticle.xCoord = this.posX;
140140
lastParticle.yCoord = this.posY;
141141
lastParticle.zCoord = this.posZ;
142-
EntityReddustFX particle = new EntityReddustFX(this.worldObj, this.posX, this.posY, this.posZ, 0.75F, this.colourR, this.colourG, this.colourB);
143-
particle.setRBGColorF(this.colourR, this.colourG, this.colourB);
144-
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
142+
renderParticle();
145143
}
146144
}
147145

@@ -199,6 +197,12 @@ public void onUpdate(){
199197
this.setPosition(this.posX, this.posY, this.posZ);
200198
}
201199

200+
@SideOnly(Side.CLIENT)
201+
private void renderParticle(){
202+
EntityReddustFX particle = new EntityReddustFX(this.worldObj, this.posX, this.posY, this.posZ, 0.75F, this.colourR, this.colourG, this.colourB);
203+
particle.setRBGColorF(this.colourR, this.colourG, this.colourB);
204+
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
205+
}
202206

203207
public void writeEntityToNBT(NBTTagCompound tagCompound) {
204208
tagCompound.setTag("direction", this.newDoubleNBTList(this.motionX, this.motionY, this.motionZ));

src/main/java/at/chaosfield/openradio/gui/LaserGui.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class LaserGui extends GuiContainer{
2020

2121
public LaserGui(InventoryPlayer inventoryPlayer, LaserTileEntity tileEntity){
2222
super(new LaserContainer(inventoryPlayer, tileEntity));
23+
this.xSize = 176;
24+
this.ySize = 183;
2325
}
2426

2527
//Draw the background texture

0 commit comments

Comments
 (0)