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