mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-10 15:05:23 +03:00
Bugfixes
This commit is contained in:
parent
e103d62b75
commit
101f5351bd
@ -29,7 +29,6 @@ public class MusicControl{
|
||||
|
||||
public MusicControl(){
|
||||
Events.on(ClientLoadEvent.class, e -> reload());
|
||||
Events.on(ContentReloadEvent.class, e -> reload());
|
||||
|
||||
//only run music 10 seconds after a wave spawns
|
||||
Events.on(WaveEvent.class, e -> Time.run(60f * 10f, () -> {
|
||||
|
@ -257,9 +257,7 @@ public class Mods implements Loadable{
|
||||
disabled.clear();
|
||||
load();
|
||||
buildFiles();
|
||||
Musics.dispose();
|
||||
Sounds.dispose();
|
||||
Musics.load();
|
||||
Sounds.load();
|
||||
Core.assets.finishLoading();
|
||||
content.clear();
|
||||
|
@ -28,6 +28,7 @@ public class NetworkIO{
|
||||
stream.writeInt(player.id);
|
||||
player.write(stream);
|
||||
|
||||
SaveIO.getSaveWriter().writeContentHeader(stream);
|
||||
SaveIO.getSaveWriter().writeMap(stream);
|
||||
}catch(IOException e){
|
||||
throw new RuntimeException(e);
|
||||
@ -51,9 +52,12 @@ public class NetworkIO{
|
||||
player.resetID(id);
|
||||
player.add();
|
||||
|
||||
SaveIO.getSaveWriter().readContentHeader(stream);
|
||||
SaveIO.getSaveWriter().readMap(stream, world.context);
|
||||
}catch(IOException e){
|
||||
throw new RuntimeException(e);
|
||||
}finally{
|
||||
content.setTemporaryMapper(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user