Fixes sidedness issues when starting up the server.

This commit is contained in:
Sebastian Hartte
2016-11-04 21:01:25 +01:00
parent 84bc00fa20
commit 7f02562e0c
2 changed files with 15 additions and 2 deletions
@@ -283,7 +283,7 @@ public enum PartType
{
// Only load models if the part is enabled, otherwise we also run into class-loading issues while
// scanning for annotations
if( Platform.isClient() )
if( Platform.isClientInstall() )
{
this.itemModels = createItemModels( itemModel );
}
@@ -298,7 +298,10 @@ public enum PartType
}
else
{
this.itemModels = Collections.emptyList();
if( Platform.isClientInstall() )
{
this.itemModels = Collections.emptyList();
}
this.models = Collections.emptySet();
}
}