Added config for NPC sizes, default 100.

This commit is contained in:
luisc committed 2022-01-25 14:54:15 -06:00
1 parent eb45a6a959
commit f14337f1bb
4 files changed
+15 -1

No files matched your search

@@ -133,6 +133,9 @@ public class DataDisplay {
glowTexture = nbttagcompound.getString("GlowTexture");
modelSize = ValueUtil.CorrectInt(nbttagcompound.getInteger("Size"), 1, Integer.MAX_VALUE);
if(modelSize > CustomNpcs.NpcSizeLimit)
modelSize = CustomNpcs.NpcSizeLimit;
modelType = nbttagcompound.getInteger("modelType");
showName = nbttagcompound.getInteger("ShowName");