mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-17 02:55:04 +00:00
Cleaned and generalised item loading/searching
Reimplemented subsets Added regex searching Fixed format error on delete all Fixed GuiButton handling clicks before NEI widgets could override Re-Implemented banned blocks implementation Added brewing recipes again note test obf ASM beacons Fixed some calls being intercepted by item panel when mouse was over a gui element Fixed crash on closing potion window with escape Disabled fast transfer, scrolling, and drag 'n' drop in creative Added item panel sorting Removed TMI uninstaller Fixed /give command Updated to 1.7.10
This commit is contained in:
1 parent
3c9ebc6961
commit
3c84527806
67 files changed
+3251
-2319
No files matched your search
@@ -108,18 +108,11 @@ public class ClientHandler
|
||||
}
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
try {
|
||||
TMIUninstaller.deleteTMIUninstaller();
|
||||
if (TMIUninstaller.TMIInstalled()) {
|
||||
TMIUninstaller.runTMIUninstaller();
|
||||
NEIClientUtils.mc().shutdownMinecraftApplet();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.err.println("Error with TMI Uninstaller");
|
||||
e.printStackTrace();
|
||||
}
|
||||
public static void preInit() {
|
||||
ItemInfo.preInit();
|
||||
}
|
||||
|
||||
public static void load() {
|
||||
instance = new ClientHandler();
|
||||
|
||||
PacketCustom.assignHandler(NEICPH.channel, new NEICPH());
|
||||
@@ -176,16 +169,16 @@ public class ClientHandler
|
||||
}
|
||||
|
||||
|
||||
public void loadWorld(World world, boolean remote) {
|
||||
public void loadWorld(World world, boolean fromServer) {
|
||||
if (world != lastworld) {
|
||||
SMPmagneticItems.clear();
|
||||
WorldOverlayRenderer.reset();
|
||||
|
||||
if (!remote) {
|
||||
if (!fromServer) {
|
||||
NEIClientConfig.setHasSMPCounterPart(false);
|
||||
NEIClientConfig.setInternalEnabled(false);
|
||||
|
||||
if (!Minecraft.getMinecraft().isSingleplayer())//wait for server to initiate
|
||||
if (!Minecraft.getMinecraft().isSingleplayer())//wait for server to initiate in singleplayer
|
||||
NEIClientConfig.loadWorld("remote/" + ClientUtils.getServerIP().replace(':', '~'));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user