Skip to content

Commit 19ddaf2

Browse files
committed
Merge branch 'tgarr0-master'
2 parents ed434a9 + efacd83 commit 19ddaf2

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

src/main/java/xreliquary/blocks/BlockApothecaryCauldron.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,16 @@ public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity c
156156
collidingEntity.attackEntityFrom(DamageSource.inFire, 1.0F);
157157
}
158158
}
159-
}
160-
161-
162-
if (collidingEntity instanceof EntityItem) {
163-
ItemStack item = ((EntityItem) collidingEntity).getEntityItem();
164-
if (cauldron.isItemValidForInput(item)) {
165-
cauldron.addItem(item);
166-
collidingEntity.setDead();
159+
160+
161+
if (collidingEntity instanceof EntityItem) {
162+
ItemStack item = ((EntityItem) collidingEntity).getEntityItem();
163+
while (cauldron.isItemValidForInput(item)) {
164+
165+
cauldron.addItem(item);
166+
if (--item.stackSize < 1)
167+
collidingEntity.setDead();
168+
}
167169
}
168170
}
169171
}

src/main/java/xreliquary/blocks/tile/TileEntityCauldron.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ public void spawnBoilingParticles() {
8484

8585
EntityCauldronBubbleFX bubble = new EntityCauldronBubbleFX(worldObj, xCoord + 0.5D + xOffset, yCoord + 0.01D + BlockCauldron.getRenderLiquidLevel(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)), zCoord + 0.5D + zOffset, 0D, 0D, 0D, red, green, blue);
8686
EntityCauldronSteamFX steam = new EntityCauldronSteamFX(worldObj, xCoord + 0.5D + xOffset, yCoord + 0.01D + BlockCauldron.getRenderLiquidLevel(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)), zCoord + 0.5D + zOffset, 0D, 0.05D + 0.02F * BlockCauldron.getRenderLiquidLevel(worldObj.getBlockMetadata(xCoord, yCoord, zCoord)), 0D, red, green, blue);
87-
if (worldObj.isRemote) {
88-
FMLClientHandler.instance().getClient().effectRenderer.addEffect(bubble);
89-
if (worldObj.rand.nextInt(6) == 0)
90-
FMLClientHandler.instance().getClient().effectRenderer.addEffect(steam);
91-
}
87+
FMLClientHandler.instance().getClient().effectRenderer.addEffect(bubble);
88+
if (worldObj.rand.nextInt(6) == 0)
89+
FMLClientHandler.instance().getClient().effectRenderer.addEffect(steam);
9290
}
9391

9492
public int getColor(PotionEssence essence) {

src/main/java/xreliquary/client/particle/EntityCauldronBubbleFX.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
package xreliquary.client.particle;
22

3+
import cpw.mods.fml.relauncher.Side;
4+
import cpw.mods.fml.relauncher.SideOnly;
35
import net.minecraft.client.Minecraft;
46
import net.minecraft.client.particle.EntityFX;
57
import net.minecraft.client.renderer.OpenGlHelper;
68
import net.minecraft.client.renderer.Tessellator;
79
import net.minecraft.util.ResourceLocation;
810
import net.minecraft.world.World;
11+
912
import org.lwjgl.opengl.GL11;
13+
14+
import cpw.mods.fml.relauncher.Side;
15+
import cpw.mods.fml.relauncher.SideOnly;
1016
import xreliquary.lib.Names;
1117
import xreliquary.lib.Reference;
1218

1319
/**
1420
* Created by Xeno on 11/9/2014.
1521
*/
22+
@SideOnly(Side.CLIENT)
1623
public class EntityCauldronBubbleFX extends EntityFX {
1724
private static ResourceLocation bubbleTexture = new ResourceLocation(Reference.MOD_ID + ":textures/particles/" + Names.cauldron_bubble + ".png");
1825

src/main/java/xreliquary/entities/shot/EntityShotBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ protected void seekTarget() {
443443
this.motionX = seekVector.xCoord * 0.4D;
444444
this.motionY = seekVector.yCoord * 0.4D;
445445
this.motionZ = seekVector.zCoord * 0.4D;
446-
this.setVelocity(motionX, motionY, motionZ);
446+
if(worldObj.isRemote){
447+
this.setVelocity(motionX, motionY, motionZ);
448+
}
447449
}
448450
}
449451

src/main/java/xreliquary/items/ItemMagazine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public int getColor(ItemStack itemStack) {
9090
@Override
9191
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List list, boolean par4) {
9292
if (stack.getItemDamage() < 2) {
93-
list.add(LanguageHelper.getLocalization("item." + Names.magazine + "_" + stack.getItemDamage() + ".tooltip"));
93+
//list.add(LanguageHelper.getLocalization("item." + Names.magazine + "_" + stack.getItemDamage() + ".tooltip"));
9494
} else {
9595
list.add(LanguageHelper.getLocalization("item." + Names.bullet + "_" + stack.getItemDamage() + ".tooltip"));
9696
}

0 commit comments

Comments
 (0)