Skip to content

Commit

Permalink
Disabling modules will no longer crash. Closes #402, closes #408
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbegt committed Nov 25, 2017
1 parent 298a26c commit 1d18798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/progwml6/natura/common/ClientProxy.java
Expand Up @@ -10,7 +10,7 @@ public class ClientProxy extends CommonProxy
{
protected void registerItemModelNatura(ItemStack item, String name)
{
if (item != null && !StringUtils.isNullOrEmpty(name))
if (item.getItem() != null && !StringUtils.isNullOrEmpty(name))
{
ModelRegisterUtil.registerItemModel(item, Util.getResource(name));
}
Expand Down

0 comments on commit 1d18798

Please sign in to comment.