mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
b34eec4dea
commit
2d13e6185e
84 files changed
+426
-434
No files matched your search
@@ -144,9 +144,9 @@ public class EquipBlock extends InventoryBlock {
|
||||
stack.stackSize -= itemSize;
|
||||
EntityItem entityitem = new EntityItem(
|
||||
par1World,
|
||||
(double) ((float) x + jumpX),
|
||||
(double) ((float) y + jumpY),
|
||||
(double) ((float) z + jumpZ),
|
||||
(float) x + jumpX,
|
||||
(float) y + jumpY,
|
||||
(float) z + jumpZ,
|
||||
new ItemStack(stack.getItem(), itemSize, stack.getItemDamage()));
|
||||
|
||||
if (stack.hasTagCompound()) {
|
||||
@@ -155,9 +155,9 @@ public class EquipBlock extends InventoryBlock {
|
||||
}
|
||||
|
||||
float offset = 0.05F;
|
||||
entityitem.motionX = (double) ((float) rand.nextGaussian() * offset);
|
||||
entityitem.motionY = (double) ((float) rand.nextGaussian() * offset + 0.2F);
|
||||
entityitem.motionZ = (double) ((float) rand.nextGaussian() * offset);
|
||||
entityitem.motionX = (float) rand.nextGaussian() * offset;
|
||||
entityitem.motionY = (float) rand.nextGaussian() * offset + 0.2F;
|
||||
entityitem.motionZ = (float) rand.nextGaussian() * offset;
|
||||
par1World.spawnEntityInWorld(entityitem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user