OSDN Git Service

AtomInfoのメソッドを修正。
authorponkotate <ponkotate@users.sourceforge.jp>
Tue, 25 Dec 2012 06:11:55 +0000 (15:11 +0900)
committerponkotate <ponkotate@users.sourceforge.jp>
Tue, 25 Dec 2012 06:11:55 +0000 (15:11 +0900)
テクスチャを修正。

common/chemicraft/AtomInfo.java
common/chemicraft/ItemGasCollectingBottle.java
resources/chemicraft/items/items.png

index fe14547..1a1cdc3 100644 (file)
@@ -133,7 +133,7 @@ public class AtomInfo {
         * @return 指定されたY軸と同等かどうか\r
         */\r
        public boolean isEquivalentY(int par1){\r
-               if(this.posY >= par1){\r
+               if(this.posY == par1){\r
                        return true;\r
                }else{\r
                        return false;\r
@@ -148,7 +148,7 @@ public class AtomInfo {
         * @return 指定されたY軸より低いか\r
         */\r
        public boolean isBelowY(int par1){\r
-               if(this.posY >= par1){\r
+               if(this.posY <= par1){\r
                        return true;\r
                }else{\r
                        return false;\r
index cbc2608..44451b1 100644 (file)
@@ -19,9 +19,10 @@ public class ItemGasCollectingBottle extends ItemAtomInfoContainer {
 
                this.atomInfo.update(par2World, par3EntityPlayer);
                if(this.atomInfo.isBelowY(129)){
-                       if(!par3EntityPlayer.inventory.addItemStackToInventory(new ItemStack(ChemiCraft.instance.atomsID, 1, 7))){
-                               par3EntityPlayer.dropPlayerItem(new ItemStack(ChemiCraft.instance.atomsID, 1, 7));
-                       }
+            if (!par3EntityPlayer.inventory.addItemStackToInventory(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 7)))
+            {
+                par3EntityPlayer.dropPlayerItem(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 7));
+            }
                }
 
                return par1ItemStack;
index 7d3ee72..31c925d 100644 (file)
Binary files a/resources/chemicraft/items/items.png and b/resources/chemicraft/items/items.png differ