修复x轴不增加的bug

This commit is contained in:
EillesWan 2022-04-29 23:17:14 +08:00
parent 259fb04980
commit 3499c05eb4

View File

@ -378,10 +378,7 @@ class midiConvert:
for cmd in track: for cmd in track:
_bytes += __formCMDblk( _bytes += __formCMDblk(
cmd, cmd,
(1 if yforward else 0) (1 if yforward else 0) if (((nowy != 0) and (not yforward)) or ((yforward) and (nowy != maxheight))) else (3 if zforward else 2) if (((nowz != 0) and (not zforward)) or ((zforward) and (nowz != _sideLength))) else 5,
if ((nowy != 0) and (not yforward))
or ((yforward) and (nowy != maxheight))
else (3 if zforward else 2),
impluse=2, impluse=2,
condition=False, condition=False,
needRedstone=False, needRedstone=False,