Fixed probable henna restoration NPE.

This commit is contained in:
MobiusDevelopment 2022-03-10 23:24:58 +00:00
parent 196e4a6af8
commit 298c27953c
2 changed files with 8 additions and 2 deletions

View File

@ -7959,8 +7959,11 @@ public class Player extends Playable
continue;
}
// retail mobius final Henna henna = HennaData.getInstance().getHenna(symbolId);
final Henna henna = HennaData.getInstance().getHennaByDyeId(symbolId);
if (henna == null)
{
continue;
}
// Task for henna duration
if (henna.getDuration() > 0)

View File

@ -7959,8 +7959,11 @@ public class Player extends Playable
continue;
}
// retail mobius final Henna henna = HennaData.getInstance().getHenna(symbolId);
final Henna henna = HennaData.getInstance().getHennaByDyeId(symbolId);
if (henna == null)
{
continue;
}
// Task for henna duration
if (henna.getDuration() > 0)