mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix DungeonSign NPE
This commit is contained in:
parent
ce7790f341
commit
e46fb89349
@ -164,6 +164,9 @@ public class DGameWorld extends DInstanceWorld implements GameWorld {
|
|||||||
@Override
|
@Override
|
||||||
public DungeonSign createDungeonSign(Sign sign, String[] lines) {
|
public DungeonSign createDungeonSign(Sign sign, String[] lines) {
|
||||||
DungeonSign dSign = super.createDungeonSign(sign, lines);
|
DungeonSign dSign = super.createDungeonSign(sign, lines);
|
||||||
|
if (dSign == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
String[] triggerTypes = lines[3].replaceAll("\\s", "").split(",");
|
String[] triggerTypes = lines[3].replaceAll("\\s", "").split(",");
|
||||||
for (String triggerString : triggerTypes) {
|
for (String triggerString : triggerTypes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user