mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +00:00
Fix NPE onPlayerLogin
This commit is contained in:
parent
9d5cc87f14
commit
460f8179d2
3 changed files with 11 additions and 4 deletions
Binary file not shown.
|
@ -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) {
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue