• R/O
  • HTTP
  • SSH
  • HTTPS

ChemiCraftNext: Commit


Commit MetaInfo

Revisión515b25fe0e9b862f2e539575b469648a0a6413eb (tree)
Tiempo2013-03-07 20:23:26
Autormozipi <mozipi@user...>
Commitermozipi

Log Message

粉塵完成版。チケット完了にしておきます

Cambiar Resumen

Diferencia incremental

--- a/common/pcc/chemicraft/ChemiCraft.java
+++ b/common/pcc/chemicraft/ChemiCraft.java
@@ -533,11 +533,6 @@ public class ChemiCraft implements Runnable {
533533 250,
534534 5,
535535 true);
536- /*
537- EntityRegistry.registerGlobalEntityID(EntityDust.class,
538- "Dust",
539- ModLoader.getUniqueEntityId());
540- */
541536
542537 this.api.addPyrolysisDecompositionFuel(new ItemStack(Item.coal), 2000*8);
543538 }
--- a/common/pcc/chemicraft/item/ItemDust.java
+++ b/common/pcc/chemicraft/item/ItemDust.java
@@ -18,12 +18,15 @@ public class ItemDust extends Item {
1818 @Override
1919 public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,
2020 EntityPlayer par3EntityPlayer) {
21- par2World.spawnEntityInWorld(new EntityDust(par2World,
22- par3EntityPlayer.posX,
23- par3EntityPlayer.posY,
24- par3EntityPlayer.posZ));
21+ if (!par2World.isRemote) {
22+ par2World.spawnEntityInWorld(new EntityDust(par2World,
23+ par3EntityPlayer.posX,
24+ par3EntityPlayer.posY,
25+ par3EntityPlayer.posZ));
26+ par1ItemStack.stackSize--;
27+ }
2528 return par1ItemStack;
2629 }
2730
28-
31+
2932 }
Show on old repository browser