File tree Expand file tree Collapse file tree
src/main/java/cam72cam/mod Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,19 +182,15 @@ public static class ClientProxy extends Proxy {
182182 public void event (ModEvent event , Mod m ) {
183183 if (event == ModEvent .CONSTRUCT ) {
184184 Config .getMaxTextureSize (); //populate
185-
185+ List <IResourcePack > packs = Minecraft .getMinecraft ().defaultResourcePacks ;
186+ BuiltinPack .loadModResource (m );
187+ IResourcePack modPack = BuiltinPack .attach (Loader .instance ().activeModContainer ().getSource ());
188+ // Ensure people will get our result first via getResourceStream() and getLastResourceStream()
189+ // (Also injects last modified time access)
190+ // BUG: sounds can still be overridden by resource packs
191+ packs .add (1 , modPack );
192+ packs .add (modPack );
186193 if (!constructed ) {
187- for (Mod mod : instance .mods ) {
188- BuiltinPack .loadModResource (mod );
189- }
190-
191- List <IResourcePack > packs = Minecraft .getMinecraft ().defaultResourcePacks ;
192- IResourcePack modPack = BuiltinPack .attach (Loader .instance ().activeModContainer ().getSource ());
193- // Ensure people will get our result first via getResourceStream() and getLastResourceStream()
194- // (Also injects last modified time access)
195- // BUG: sounds can still be overridden by resource packs
196- packs .add (1 , modPack );
197- packs .add (modPack );
198194 BuiltinPack .onConstruct (packs );
199195
200196 //Backport of lowercase language code
Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ public void writeText(String p_writeText_1_) {
3131 }
3232 }
3333 };
34- internal .setMaxStringLength (256 );
3534 builder .addTextField (this );
3635 }
3736
3837 /** Internal, can be overridden to support custom GuiTextFields */
3938 protected TextField (IScreenBuilder builder , GuiTextField internal ) {
4039 this .internal = internal ;
40+ internal .setMaxStringLength (256 );
4141 builder .addTextField (this );
4242 }
4343
You can’t perform that action at this time.
0 commit comments