Added some debug checks.
This commit is contained in:
parent
05b1e03598
commit
9cf4ff005a
@ -170,6 +170,12 @@ public class BlockRestoreMap
|
|||||||
|
|
||||||
return _currentIterator.next();
|
return _currentIterator.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove()
|
||||||
|
{
|
||||||
|
_currentIterator.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,21 @@ public class GearManager extends MiniPlugin implements IPacketHandler, Runnable
|
|||||||
|
|
||||||
if (serialization != null)
|
if (serialization != null)
|
||||||
{
|
{
|
||||||
CustomItem customItem = deserialize(serialization);
|
|
||||||
|
CustomItem customItem = null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
customItem = deserialize(serialization);
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
System.out.println("==========");
|
||||||
|
System.out.println("GearManager parse problem :");
|
||||||
|
System.out.println(serialization);
|
||||||
|
System.out.println("==========");
|
||||||
|
}
|
||||||
|
|
||||||
return customItem;
|
return customItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ import mineplex.minecraft.game.classcombat.Skill.ISkill;
|
|||||||
import mineplex.minecraft.game.classcombat.Skill.ISkill.SkillType;
|
import mineplex.minecraft.game.classcombat.Skill.ISkill.SkillType;
|
||||||
import mineplex.minecraft.game.classcombat.Skill.SkillFactory;
|
import mineplex.minecraft.game.classcombat.Skill.SkillFactory;
|
||||||
import mineplex.minecraft.game.classcombat.Skill.Knight.AxeThrow;
|
import mineplex.minecraft.game.classcombat.Skill.Knight.AxeThrow;
|
||||||
|
import mineplex.minecraft.game.classcombat.item.IItem;
|
||||||
import mineplex.minecraft.game.classcombat.item.ItemFactory;
|
import mineplex.minecraft.game.classcombat.item.ItemFactory;
|
||||||
|
|
||||||
public class ClientClass
|
public class ClientClass
|
||||||
@ -148,7 +149,19 @@ public class ClientClass
|
|||||||
if (slotToken.Material.isEmpty())
|
if (slotToken.Material.isEmpty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
itemTokenUsage += _itemFactory.GetItem(slotToken.Name.equalsIgnoreCase("Cobweb") ? "Web" : slotToken.Name).getTokenCost();
|
IItem item = _itemFactory.GetItem(slotToken.Name.equalsIgnoreCase("Cobweb") ? "Web" : slotToken.Name);
|
||||||
|
|
||||||
|
if (item == null)
|
||||||
|
{
|
||||||
|
System.out.println("================");
|
||||||
|
System.out.println("======ClientClass.Load======");
|
||||||
|
System.out.println("Huh? " + slotToken.Name);
|
||||||
|
System.out.println("================");
|
||||||
|
System.out.println("================");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
itemTokenUsage += item.getTokenCost();
|
||||||
}
|
}
|
||||||
|
|
||||||
itemTokenUsage += buildToken.ItemTokens;
|
itemTokenUsage += buildToken.ItemTokens;
|
||||||
@ -560,7 +573,16 @@ public class ClientClass
|
|||||||
|
|
||||||
for (SkillType type : _lastSkillMap.keySet())
|
for (SkillType type : _lastSkillMap.keySet())
|
||||||
{
|
{
|
||||||
player.sendMessage(C.cGreen + type + ": " + C.cWhite + _lastSkillMap.get(type).getKey().GetName() + " " + _lastSkillMap.get(type).getValue());
|
if (_lastSkillMap.get(type).getKey() != null)
|
||||||
|
player.sendMessage(C.cGreen + type + ": " + C.cWhite + _lastSkillMap.get(type).getKey().GetName() + " " + _lastSkillMap.get(type).getValue());
|
||||||
|
else
|
||||||
|
{
|
||||||
|
System.out.println("================");
|
||||||
|
System.out.println("======ClientClass.DisplaySkills======");
|
||||||
|
System.out.println("Huh? " + type + " " + _lastSkillMap.get(type).getKey());
|
||||||
|
System.out.println("================");
|
||||||
|
System.out.println("================");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user