mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Fixed #11958
This commit is contained in:
@@ -147,7 +147,7 @@ public class TypeIO{
|
|||||||
}else if(object instanceof UnitCommand command){
|
}else if(object instanceof UnitCommand command){
|
||||||
write.b(23);
|
write.b(23);
|
||||||
write.s(command.id);
|
write.s(command.id);
|
||||||
}else if(object instanceof Bullet b){ //write bullets as null
|
}else if(object instanceof Bullet b || object instanceof Seq<?> s){ //write bullets as null
|
||||||
write.b((byte)0);
|
write.b((byte)0);
|
||||||
}else{
|
}else{
|
||||||
throw new IllegalArgumentException("Unknown object type: " + object.getClass());
|
throw new IllegalArgumentException("Unknown object type: " + object.getClass());
|
||||||
|
|||||||
Reference in New Issue
Block a user