mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Added config for NPC sizes, default 100.
This commit is contained in:
1 parent
eb45a6a959
commit
f14337f1bb
4 files changed
+15
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.scripted.entity;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import noppes.npcs.CustomNpcs;
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.constants.*;
|
||||
import noppes.npcs.controllers.Line;
|
||||
@@ -53,6 +54,9 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
public void setSize(int size){
|
||||
if(size < 1)
|
||||
size = 1;
|
||||
if(size > CustomNpcs.NpcSizeLimit)
|
||||
size = CustomNpcs.NpcSizeLimit;
|
||||
|
||||
npc.display.modelSize = size;
|
||||
npc.script.clientNeedsUpdate = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user