@@ -129,17 +129,17 @@ private void addItemToInventory(ItemType type, int amount) {
129129 case PALM_FIBER :
130130 inventory .addPalmFiber (amount );
131131 break ;
132- case LEFT_FENCE :
133- inventory .addLeftFence (amount );
132+ case FISH :
133+ inventory .addFish (amount );
134134 break ;
135135 case FRONT_FENCE :
136136 inventory .addFrontFence (amount );
137137 break ;
138138 case BACK_FENCE :
139139 inventory .addBackFence (amount );
140140 break ;
141- case RIGHT_FENCE :
142- inventory .addRightFence (amount );
141+ case BOW_AND_ARROW :
142+ inventory .addBowAndArrow (amount );
143143 break ;
144144 }
145145
@@ -168,10 +168,10 @@ private void sendInventoryUpdate() {
168168 inventory .getWoodStackCount (),
169169 inventory .getPebbleCount (),
170170 inventory .getPalmFiberCount (),
171- inventory .getLeftFenceCount (),
171+ inventory .getFishCount (),
172172 inventory .getFrontFenceCount (),
173173 inventory .getBackFenceCount (),
174- inventory .getRightFenceCount ()
174+ inventory .getBowAndArrowCount ()
175175 );
176176
177177 gameClient .sendMessage (message );
@@ -201,14 +201,14 @@ public void sendInventoryUpdateToServer() {
201201 * @param woodStackCount The wood stack count from server
202202 * @param pebbleCount The pebble count from server
203203 * @param palmFiberCount The palm fiber count from server
204- * @param leftFenceCount The left fence count from server
204+ * @param fishCount The fish count from server
205205 * @param frontFenceCount The front fence count from server
206206 * @param backFenceCount The back fence count from server
207- * @param rightFenceCount The right fence count from server
207+ * @param bowAndArrowCount The bow and arrow count from server
208208 */
209209 public void syncFromServer (int appleCount , int bananaCount , int appleSaplingCount , int bananaSaplingCount ,
210210 int bambooSaplingCount , int bambooStackCount , int treeSaplingCount , int woodStackCount ,
211- int pebbleCount , int palmFiberCount , int leftFenceCount , int frontFenceCount , int backFenceCount , int rightFenceCount ) {
211+ int pebbleCount , int palmFiberCount , int fishCount , int frontFenceCount , int backFenceCount , int bowAndArrowCount ) {
212212 if (!isMultiplayerMode ) {
213213 return ; // Only sync in multiplayer mode
214214 }
@@ -224,10 +224,10 @@ public void syncFromServer(int appleCount, int bananaCount, int appleSaplingCoun
224224 inventory .setWoodStackCount (woodStackCount );
225225 inventory .setPebbleCount (pebbleCount );
226226 inventory .setPalmFiberCount (palmFiberCount );
227- inventory .setLeftFenceCount ( leftFenceCount );
227+ inventory .setFishCount ( fishCount );
228228 inventory .setFrontFenceCount (frontFenceCount );
229229 inventory .setBackFenceCount (backFenceCount );
230- inventory .setRightFenceCount ( rightFenceCount );
230+ inventory .setBowAndArrowCount ( bowAndArrowCount );
231231
232232 System .out .println ("Inventory synced from server: Apples=" + appleCount +
233233 ", Bananas=" + bananaCount +
@@ -239,10 +239,10 @@ public void syncFromServer(int appleCount, int bananaCount, int appleSaplingCoun
239239 ", WoodStack=" + woodStackCount +
240240 ", Pebbles=" + pebbleCount +
241241 ", PalmFibers=" + palmFiberCount +
242- ", LeftFence =" + leftFenceCount +
242+ ", Fish =" + fishCount +
243243 ", FrontFence=" + frontFenceCount +
244244 ", BackFence=" + backFenceCount +
245- ", RightFence =" + rightFenceCount );
245+ ", BowAndArrow =" + bowAndArrowCount );
246246 }
247247
248248 /**
@@ -294,10 +294,10 @@ public ItemType getSelectedItemType() {
294294 case 7 : return ItemType .PALM_FIBER ;
295295 case 8 : return ItemType .APPLE_SAPLING ;
296296 case 9 : return ItemType .BANANA_SAPLING ;
297- case 10 : return ItemType .LEFT_FENCE ;
297+ case 10 : return ItemType .FISH ;
298298 case 11 : return ItemType .FRONT_FENCE ;
299299 case 12 : return ItemType .BACK_FENCE ;
300- case 13 : return ItemType .RIGHT_FENCE ;
300+ case 13 : return ItemType .BOW_AND_ARROW ;
301301 default : return null ;
302302 }
303303 }
@@ -382,10 +382,10 @@ public void checkAndAutoDeselect() {
382382 case 7 : itemCount = inventory .getPalmFiberCount (); break ;
383383 case 8 : itemCount = inventory .getAppleSaplingCount (); break ;
384384 case 9 : itemCount = inventory .getBananaSaplingCount (); break ;
385- case 10 : itemCount = inventory .getLeftFenceCount (); break ;
385+ case 10 : itemCount = inventory .getFishCount (); break ;
386386 case 11 : itemCount = inventory .getFrontFenceCount (); break ;
387387 case 12 : itemCount = inventory .getBackFenceCount (); break ;
388- case 13 : itemCount = inventory .getRightFenceCount (); break ;
388+ case 13 : itemCount = inventory .getBowAndArrowCount (); break ;
389389 }
390390
391391 if (itemCount == 0 ) {
0 commit comments