mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15:35 +03:00
Added DrawPart to ClassMap
This commit is contained in:
parent
dfb01ebdf1
commit
7c8cbd41a4
@ -220,6 +220,7 @@ public class NetServer implements ApplicationListener{
|
||||
}
|
||||
|
||||
if(Groups.player.contains(player -> player.uuid().equals(packet.uuid) || player.usid().equals(packet.usid))){
|
||||
con.uuid = packet.uuid;
|
||||
con.kick(KickReason.idInUse);
|
||||
return;
|
||||
}
|
||||
|
@ -65,6 +65,15 @@ public class ClassMap{
|
||||
classes.put("SeqEffect", mindustry.entities.effect.SeqEffect.class);
|
||||
classes.put("WaveEffect", mindustry.entities.effect.WaveEffect.class);
|
||||
classes.put("WrapEffect", mindustry.entities.effect.WrapEffect.class);
|
||||
classes.put("DrawPart", mindustry.entities.part.DrawPart.class);
|
||||
classes.put("PartFunc", mindustry.entities.part.DrawPart.PartFunc.class);
|
||||
classes.put("PartMove", mindustry.entities.part.DrawPart.PartMove.class);
|
||||
classes.put("PartParams", mindustry.entities.part.DrawPart.PartParams.class);
|
||||
classes.put("PartProgress", mindustry.entities.part.DrawPart.PartProgress.class);
|
||||
classes.put("FlarePart", mindustry.entities.part.FlarePart.class);
|
||||
classes.put("HoverPart", mindustry.entities.part.HoverPart.class);
|
||||
classes.put("RegionPart", mindustry.entities.part.RegionPart.class);
|
||||
classes.put("ShapePart", mindustry.entities.part.ShapePart.class);
|
||||
classes.put("ShootAlternate", mindustry.entities.pattern.ShootAlternate.class);
|
||||
classes.put("ShootBarrel", mindustry.entities.pattern.ShootBarrel.class);
|
||||
classes.put("ShootHelix", mindustry.entities.pattern.ShootHelix.class);
|
||||
|
@ -793,7 +793,7 @@ public class Mods implements Loadable{
|
||||
}
|
||||
|
||||
meta = findMeta(zip);
|
||||
}catch(Exception ignored){
|
||||
}catch(Throwable ignored){
|
||||
}
|
||||
|
||||
if(meta == null) continue;
|
||||
|
@ -85,7 +85,8 @@ public class ScriptMainGenerator{
|
||||
"mindustry.world.blocks",
|
||||
"mindustry.world.draw",
|
||||
"mindustry.type",
|
||||
"mindustry.entities.pattern"
|
||||
"mindustry.entities.pattern",
|
||||
"mindustry.entities.part"
|
||||
);
|
||||
|
||||
String classTemplate = "package mindustry.mod;\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user