Fix NPE onPlayerLogin

This commit is contained in:
MistPhizzle 2014-07-03 22:49:49 -04:00
parent 9d5cc87f14
commit 460f8179d2
3 changed files with 11 additions and 4 deletions

Binary file not shown.

View file

@ -169,9 +169,16 @@ public class Methods {
if (slot8 != null) abilities.put(8, slot8); if (slot8 != null) abilities.put(8, slot8);
if (slot9 != null) abilities.put(9, slot9); if (slot9 != null) abilities.put(9, slot9);
if (permaremoved == null) p = false; if (permaremoved == null) {
if (permaremoved.equals("true")) p = true; p = false;
if (permaremoved.equals("false")) p = false; }
else if (permaremoved.equals("true")) {
p = true;
}
else if (permaremoved.equals("false")) {
p = false;
}
new BendingPlayer(uuid, player2, elements, abilities, p); new BendingPlayer(uuid, player2, elements, abilities, p);
} }
} catch (SQLException ex) { } catch (SQLException ex) {

View file

@ -1,6 +1,6 @@
name: ProjectKorra name: ProjectKorra
author: ProjectKorra author: ProjectKorra
version: 1.1.0 BETA 13 version: 1.1.0 BETA 14
main: com.projectkorra.ProjectKorra.ProjectKorra main: com.projectkorra.ProjectKorra.ProjectKorra
commands: commands:
projectkorra: projectkorra: