File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 66import mindustry .core .GameState .*;
77import mindustry .ctype .*;
88import mindustry .gen .*;
9+ import mindustry .graphics .MultiPacker ;
910import mindustry .net .*;
1011import mindustry .net .Packets .*;
1112import mindustry .type .*;
@@ -87,7 +88,13 @@ public static class BlockInfoEvent{}
8788 /** Called *after* all content has been initialized. */
8889 public static class ContentInitEvent {}
8990 /** Called *after* all content has been added to the atlas, but before its pixmaps are disposed. */
90- public static class AtlasPackEvent {}
91+ public static class AtlasPackEvent {
92+ public final MultiPacker multiPacker ;
93+
94+ public AtlasPackEvent (MultiPacker multiPacker ){
95+ this .multiPacker = multiPacker ;
96+ }
97+ }
9198 /** Called *after* all mod content has been loaded, but before it has been initialized. */
9299 public static class ModContentLoadEvent {}
93100 /** Called when the client game is first loaded. */
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ public PixmapRegion getPixmap(AtlasRegion region){
337337
338338 packer .printStats ();
339339
340- Events .fire (new AtlasPackEvent ());
340+ Events .fire (new AtlasPackEvent (packer ));
341341
342342 packer .dispose ();
343343
You can’t perform that action at this time.
0 commit comments