我会疯了吗?或者我需要更多的睡眠...可以annyone提供第二套眼睛吗?1不== 1,布尔问题
boolean slotTypeMatch = false;
System.out.println("waiType: " + waiType);
if (waiType.equals("W")){
} else if(waiType.equals("A")){
itemFilename = MyServer.armorMap.get(waiId).getFilename();
System.out.println("endContainerSlot: " + endContainerSlot + ", getSlot: " + MyServer.weaponMap.get(waiId).getSlot());
if (endContainerSlot == MyServer.armorMap.get(waiId).getSlot()){
System.out.println("WHY DONT I MAKE IT HERE!!!!");
slotTypeMatch = true;
}
}
System.out.println("itemFilename: " + itemFilename);
System.out.println("slotTypeMatch: " + slotTypeMatch);
if (slotTypeMatch){
//not making it here, I must be going insane
这里是我的控制台输出...我不知道这一点,我的生活......
waiType: A
endContainerSlot: 1, getSlot: 1
itemFilename: images/armor/armor_tunic.png
slotTypeMatch: false
编辑它们都诠释
int endContainerSlot - com.jayavon.game.server.MyCommandHandler.run()
int com.jayavon.game.actualgame.Armor.getSlot()
他们是同一类型吗? – Blender 2013-04-29 04:49:24
对不起,他们都是int – KisnardOnline 2013-04-29 04:50:10
endContainerSlot和getSlot的数据类型是什么? – 2013-04-29 04:50:30