par3EntityPlayer.posY,
par3EntityPlayer.posZ,
"ChemiCraft.raditionGun",
- 1.0F,
+ 2.0F,
1.3F,
false);
if (!par2World.isRemote) {
par3EntityPlayer.posY,
par3EntityPlayer.posZ,
"ChemiCraft.raditionGun",
- 1.0F,
+ 2.0F,
1.3F,
false);
if (!par2World.isRemote) {
private void field_00001(ItemStack par1ItemStack, World par2World,
EntityPlayer par3EntityPlayer) {
- ArrayList<Entity> collisions = ChemiCraft.instance.mathAuxiliary.getTriangleEntitys(par2World,
+ ArrayList<Entity> collisions = ChemiCraft.instance.mathAuxiliary.getTriangleEntitysByPlayer(par2World,
par3EntityPlayer.posX,
par3EntityPlayer.posY,
par3EntityPlayer.posZ,
15);
for (int i = 0; i < collisions.size(); i++) {
- if (collisions.get(i) instanceof EntityLiving) {
+ if (collisions.get(i) instanceof EntityLiving && collisions.get(i) != par3EntityPlayer) {
try {
EntityLiving entity = (EntityLiving) collisions.get(i);
entity.attackEntityFrom(DamageSource.causePlayerDamage(par3EntityPlayer), (int) (10 + Math.random() * 11));