1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-10 15:05:23 +03:00

Various bugfixes

This commit is contained in:
Anuken 2019-10-25 14:48:44 -04:00
parent 742fb3dece
commit 44dc250a2b
3 changed files with 4 additions and 2 deletions

View File

@ -277,6 +277,7 @@ public class Mods implements Loadable{
/** Creates all the content found in mod files. */
public void loadContent(){
for(LoadedMod mod : loaded){
safeRun(mod, () -> {
if(mod.root.child("content").exists()){

View File

@ -96,6 +96,7 @@ public class ModsDialog extends FloatingDialog{
anyDisabled = true;
table.row();
table.addImage().growX().height(4f).pad(6f).color(Pal.gray);
table.row();
}
table.table(Styles.black6, t -> {

View File

@ -413,12 +413,12 @@ public class Conveyor extends Block implements Autotiler{
static long toLong(int value){
byte[] values = Pack.bytes(value, writeByte);
byte itemid = values[0];
short itemid = content.item(values[0]).id;
float x = values[1] / 127f;
float y = ((int)values[2] + 128) / 255f;
short[] shorts = writeShort;
shorts[0] = (short)itemid;
shorts[0] = itemid;
shorts[1] = (short)(x * Short.MAX_VALUE);
shorts[2] = (short)((y - 1f) * Short.MAX_VALUE);
return Pack.longShorts(shorts);