Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package mindustry.core;
|
||||
|
||||
import arc.*;
|
||||
import arc.files.*;
|
||||
import arc.func.*;
|
||||
import arc.graphics.*;
|
||||
@@ -7,8 +8,10 @@ import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.game.EventType.*;
|
||||
import mindustry.entities.bullet.*;
|
||||
import mindustry.mod.Mods.*;
|
||||
import mindustry.net.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
@@ -97,6 +100,7 @@ public class ContentLoader{
|
||||
public void init(){
|
||||
initialize(Content::init);
|
||||
if(constants != null) constants.init();
|
||||
Events.fire(new ContentInitEvent());
|
||||
}
|
||||
|
||||
/** Calls Content#load() on everything. Use only after all modules have been created on the client.*/
|
||||
|
||||
@@ -424,7 +424,7 @@ public class Control implements ApplicationListener, Loadable{
|
||||
net.dispose();
|
||||
Musics.dispose();
|
||||
Sounds.dispose();
|
||||
ui.editor.dispose();
|
||||
if(ui != null && ui.editor != null) ui.editor.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -284,7 +284,7 @@ public class NetServer implements ApplicationListener{
|
||||
}
|
||||
|
||||
StringBuilder result = new StringBuilder();
|
||||
result.append(Strings.format("[orange]-- Commands Page[lightgray] @[gray]/[lightgray]@[orange] --\n\n", (page+1), pages));
|
||||
result.append(Strings.format("[orange]-- Commands Page[lightgray] @[gray]/[lightgray]@[orange] --\n\n", (page + 1), pages));
|
||||
|
||||
for(int i = commandsPerPage * page; i < Math.min(commandsPerPage * (page + 1), clientCommands.getCommandList().size); i++){
|
||||
Command command = clientCommands.getCommandList().get(i);
|
||||
@@ -347,8 +347,8 @@ public class NetServer implements ApplicationListener{
|
||||
|
||||
boolean checkPass(){
|
||||
if(votes >= votesRequired()){
|
||||
Call.sendMessage(Strings.format("[orange]Vote passed.[scarlet] @[orange] will be banned from the server for @ minutes.", target.name, (kickDuration/60)));
|
||||
target.getInfo().lastKicked = Time.millis() + kickDuration*1000;
|
||||
Call.sendMessage(Strings.format("[orange]Vote passed.[scarlet] @[orange] will be banned from the server for @ minutes.", target.name, (kickDuration / 60)));
|
||||
target.getInfo().lastKicked = Time.millis() + kickDuration * 1000;
|
||||
Groups.player.each(p -> p.uuid().equals(target.uuid()), p -> p.kick(KickReason.vote));
|
||||
map[0] = null;
|
||||
task.cancel();
|
||||
|
||||
@@ -111,7 +111,10 @@ public class Renderer implements ApplicationListener{
|
||||
minimap.dispose();
|
||||
effectBuffer.dispose();
|
||||
blocks.dispose();
|
||||
planets.dispose();
|
||||
if(planets != null){
|
||||
planets.dispose();
|
||||
planets = null;
|
||||
}
|
||||
if(bloom != null){
|
||||
bloom.dispose();
|
||||
bloom = null;
|
||||
|
||||
@@ -64,6 +64,8 @@ public class EventType{
|
||||
public static class CoreItemDeliverEvent{}
|
||||
/** Called when the player opens info for a specific block.*/
|
||||
public static class BlockInfoEvent{}
|
||||
/** Called *after* all content has been initialized. */
|
||||
public static class ContentInitEvent{}
|
||||
/** Called when the client game is first loaded. */
|
||||
public static class ClientLoadEvent{}
|
||||
/** Called when a game begins and the world is loaded. */
|
||||
|
||||
Reference in New Issue
Block a user