mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
copy paste
This commit is contained in:
parent
8bbf5b1f52
commit
4ed6ed9bcb
@ -57,7 +57,7 @@ public class GlobalVars{
|
||||
varWaveTime = put("@waveTime", 0);
|
||||
|
||||
varServer = put("@server", 0);
|
||||
varClient = put("@server", 0);
|
||||
varClient = put("@client", 0);
|
||||
|
||||
//special enums
|
||||
put("@ctrlProcessor", ctrlProcessor);
|
||||
|
@ -1862,7 +1862,8 @@ public class LExecutor{
|
||||
if(type == LMarkerControl.remove){
|
||||
state.markers.remove(exec.numi(id));
|
||||
}else{
|
||||
if(!state.markers.containsKey(exec.numi(id))) return;
|
||||
var marker = state.markers.get(id);
|
||||
if(marker == null) return;
|
||||
|
||||
if(type == LMarkerControl.text){
|
||||
Call.updateMarkerText(exec.numi(id), type, (exec.obj(p1) != null ? exec.obj(p1).toString() : "null"));
|
||||
@ -1870,6 +1871,7 @@ public class LExecutor{
|
||||
Call.updateMarkerText(exec.numi(id), type, exec.textBuffer.toString());
|
||||
exec.textBuffer.setLength(0);
|
||||
}else{
|
||||
//TODO this aggressively spams packets to everyone
|
||||
Call.updateMarker(exec.numi(id), type, exec.num(p1), exec.num(p2), exec.num(p3));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user