Make catmullrom keyframes only export post again

Version ranges in modded entity format
This commit is contained in:
JannisX11 2021-03-05 12:55:49 +01:00
parent 874645678a
commit 9945e113d4
2 changed files with 8 additions and 4 deletions

View File

@ -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),
})

View File

@ -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: