diff --git a/js/animations/keyframe.js b/js/animations/keyframe.js index 6bf0613f..2cd279c4 100644 --- a/js/animations/keyframe.js +++ b/js/animations/keyframe.js @@ -224,11 +224,15 @@ class Keyframe { } compileBedrockKeyframe() { if (this.transform) { - if (this.data_points.length == 1 && this.interpolation == 'linear') { + if (this.interpolation != 'linear') { + return { + post: this.getArray(), + lerp_mode: this.interpolation, + } + } else if (this.data_points.length == 1) { return this.getArray(); } else { return new oneLiner({ - lerp_mode: this.interpolation != 'linear' ? this.interpolation : undefined, pre: this.getArray(0), post: this.getArray(1), }) diff --git a/js/io/formats/modded_entity.js b/js/io/formats/modded_entity.js index cafe75ed..3b66fec9 100644 --- a/js/io/formats/modded_entity.js +++ b/js/io/formats/modded_entity.js @@ -12,7 +12,7 @@ function I(num) { } const Templates = { '1.12': { - name: 'Forge 1.12', + name: 'Forge 1.7 - 1.13', flip_y: true, integer_size: true, file: @@ -96,7 +96,7 @@ const Templates = { }, '1.15': { - name: 'Forge 1.15', + name: 'Forge 1.15 - 1.16', flip_y: true, integer_size: false, file: