mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 19:55:06 +00:00
Added tick duration read/write nbt
This commit is contained in:
1 parent
d1ca49fc3b
commit
a564bcdb0e
2 files changed
+13
-2
No files matched your search
@@ -135,9 +135,13 @@ public class Frame implements IFrame {
|
||||
customized = true;
|
||||
smooth = compound.getByte("Smooth");
|
||||
}
|
||||
if(compound.hasKey("RenderTicks")){
|
||||
|
||||
if (compound.hasKey("TickDuration")) {
|
||||
customized = true;
|
||||
this.tickDuration = compound.getInteger("TickDuration");
|
||||
} else if(compound.hasKey("RenderTicks")){
|
||||
customized = true;
|
||||
this.tickDuration = 20;
|
||||
this.tickDuration = compound.getBoolean("RenderTicks") ? 20 : 50;
|
||||
}
|
||||
|
||||
if (!customized) {
|
||||
|
||||
Reference in new issue
Block a user