Skip to content

Commit

Permalink
Support 1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
irtimaled committed Sep 27, 2017
1 parent 90759d5 commit cac25ff
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 32 deletions.
8 changes: 4 additions & 4 deletions java/com/irtimaled/bbor/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,13 @@ private void renderCuboid(AxisAlignedBB bb, int alphaChannel, Color color) {
}

private AxisAlignedBB offsetAxisAlignedBB(AxisAlignedBB axisAlignedBB) {
double expandXZ = 0.001F;
double expandY = 0;
double growXZ = 0.001F;
double growY = 0;
if (axisAlignedBB.minY != axisAlignedBB.maxY) {
expandY = expandXZ;
growY = growXZ;
}
return axisAlignedBB
.expand(expandXZ, expandY, expandXZ)
.grow(growXZ, growY, growXZ)
.offset(-playerX, -playerY, -playerZ);
}

Expand Down
14 changes: 7 additions & 7 deletions patches/net.minecraft.client.Minecraft.java.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/client/Minecraft.java mcp940-pre1_1.12/src/minecraft/net/minecraft/client/Minecraft.java
--- mcp940-pre1/src/minecraft/net/minecraft/client/Minecraft.java 2017-07-04 17:36:37.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/client/Minecraft.java 2017-07-04 16:03:22.000000000 -0700
@@ -633,6 +633,8 @@
diff -r -u a/net/minecraft/client/Minecraft.java b/net/minecraft/client/Minecraft.java
--- a/net/minecraft/client/Minecraft.java 2017-09-27 12:01:40.000000000 -0700
+++ b/net/minecraft/client/Minecraft.java 2017-09-27 11:30:01.000000000 -0700
@@ -643,6 +643,8 @@
}

this.renderGlobal.makeEntityOutlineShader();
+
+ com.irtimaled.bbor.BoundingBoxOutlineReloaded.init();
}

private void func_193986_ar()
@@ -2242,6 +2244,8 @@
/**
@@ -2276,6 +2278,8 @@
this.gameSettings.smoothCamera = !this.gameSettings.smoothCamera;
}

+ com.irtimaled.bbor.BoundingBoxOutlineReloaded.keyPressed();
+
for (int i = 0; i < 9; ++i)
{
boolean flag = this.gameSettings.field_193629_ap.isKeyDown();
boolean flag = this.gameSettings.keyBindSaveToolbar.isKeyDown();
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/client/multiplayer/WorldClient.java mcp940-pre1_1.12/src/minecraft/net/minecraft/client/multiplayer/WorldClient.java
--- mcp940-pre1/src/minecraft/net/minecraft/client/multiplayer/WorldClient.java 2017-07-04 17:36:38.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/client/multiplayer/WorldClient.java 2017-07-04 16:04:51.000000000 -0700
diff -r -u a/net/minecraft/client/multiplayer/WorldClient.java b/net/minecraft/client/multiplayer/WorldClient.java
--- a/net/minecraft/client/multiplayer/WorldClient.java 2017-09-27 12:01:40.000000000 -0700
+++ b/net/minecraft/client/multiplayer/WorldClient.java 2017-09-27 11:53:37.000000000 -0700
@@ -320,6 +320,7 @@
public void sendQuittingDisconnectingPacket()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/client/renderer/EntityRenderer.java mcp940-pre1_1.12/src/minecraft/net/minecraft/client/renderer/EntityRenderer.java
--- mcp940-pre1/src/minecraft/net/minecraft/client/renderer/EntityRenderer.java 2017-07-04 17:36:38.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/client/renderer/EntityRenderer.java 2017-07-04 16:04:15.000000000 -0700
diff -r -u a/net/minecraft/client/renderer/EntityRenderer.java b/net/minecraft/client/renderer/EntityRenderer.java
--- a/net/minecraft/client/renderer/EntityRenderer.java 2017-09-27 12:01:40.000000000 -0700
+++ b/net/minecraft/client/renderer/EntityRenderer.java 2017-09-27 11:53:37.000000000 -0700
@@ -1483,6 +1483,8 @@
this.renderCloudsCheck(renderglobal, partialTicks, pass, d0, d1, d2);
}
Expand Down
10 changes: 10 additions & 0 deletions patches/net.minecraft.client.settings.KeyBinding.java.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff -r -u a/net/minecraft/client/settings/KeyBinding.java b/net/minecraft/client/settings/KeyBinding.java
--- a/net/minecraft/client/settings/KeyBinding.java 2017-09-27 12:01:40.000000000 -0700
+++ b/net/minecraft/client/settings/KeyBinding.java 2017-09-27 11:52:47.000000000 -0700
@@ -184,5 +184,6 @@
CATEGORY_ORDER.put("key.categories.multiplayer", Integer.valueOf(5));
CATEGORY_ORDER.put("key.categories.ui", Integer.valueOf(6));
CATEGORY_ORDER.put("key.categories.misc", Integer.valueOf(7));
+ CATEGORY_ORDER.put("Bounding Box Outline Reloaded", Integer.valueOf(0));
}
}
6 changes: 3 additions & 3 deletions patches/net.minecraft.network.NetworkManager.java.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/network/NetworkManager.java mcp940-pre1_1.12/src/minecraft/net/minecraft/network/NetworkManager.java
--- mcp940-pre1/src/minecraft/net/minecraft/network/NetworkManager.java 2017-07-04 17:36:38.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/network/NetworkManager.java 2017-07-04 17:54:02.000000000 -0700
diff -r -u a/net/minecraft/network/NetworkManager.java b/net/minecraft/network/NetworkManager.java
--- a/net/minecraft/network/NetworkManager.java 2017-09-27 12:01:41.000000000 -0700
+++ b/net/minecraft/network/NetworkManager.java 2017-09-27 11:53:38.000000000 -0700
@@ -32,6 +32,7 @@
import java.util.concurrent.locks.ReentrantReadWriteLock;
import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/server/integrated/IntegratedServer.java mcp940-pre1_1.12/src/minecraft/net/minecraft/server/integrated/IntegratedServer.java
--- mcp940-pre1/src/minecraft/net/minecraft/server/integrated/IntegratedServer.java 2017-07-04 17:36:38.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/server/integrated/IntegratedServer.java 2017-07-04 16:07:03.000000000 -0700
@@ -114,6 +114,7 @@
this.worldServers[i] = (WorldServer)(new WorldServerMulti(this, isavehandler, j, this.worldServers[0], this.theProfiler)).init();
diff -r -u a/net/minecraft/server/integrated/IntegratedServer.java b/net/minecraft/server/integrated/IntegratedServer.java
--- a/net/minecraft/server/integrated/IntegratedServer.java 2017-09-27 12:01:41.000000000 -0700
+++ b/net/minecraft/server/integrated/IntegratedServer.java 2017-09-27 11:37:50.000000000 -0700
@@ -114,6 +114,8 @@
this.worlds[i] = (WorldServer)(new WorldServerMulti(this, isavehandler, j, this.worlds[0], this.profiler)).init();
}

+ com.irtimaled.bbor.BoundingBoxOutlineReloaded.worldLoaded(this.worldServers[i]);
this.worldServers[i].addEventListener(new ServerWorldEventHandler(this, this.worldServers[i]));
+ com.irtimaled.bbor.BoundingBoxOutlineReloaded.worldLoaded(this.worlds[i]);
+
this.worlds[i].addEventListener(new ServerWorldEventHandler(this, this.worlds[i]));
}

9 changes: 4 additions & 5 deletions patches/net.minecraft.world.chunk.Chunk.java.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
Only in mcp940-pre1_1.12/src/minecraft/net/minecraft/util: .DS_Store
diff -r -U 3 mcp940-pre1/src/minecraft/net/minecraft/world/chunk/Chunk.java mcp940-pre1_1.12/src/minecraft/net/minecraft/world/chunk/Chunk.java
--- mcp940-pre1/src/minecraft/net/minecraft/world/chunk/Chunk.java 2017-07-04 17:36:38.000000000 -0700
+++ mcp940-pre1_1.12/src/minecraft/net/minecraft/world/chunk/Chunk.java 2017-07-04 16:07:38.000000000 -0700
diff -r -u a/net/minecraft/world/chunk/Chunk.java b/net/minecraft/world/chunk/Chunk.java
--- a/net/minecraft/world/chunk/Chunk.java 2017-09-27 12:01:41.000000000 -0700
+++ b/net/minecraft/world/chunk/Chunk.java 2017-09-27 11:34:42.000000000 -0700
@@ -935,6 +935,7 @@
{
this.worldObj.loadEntities(classinheritancemultimap);
this.world.loadEntities(classinheritancemultimap);
}
+ com.irtimaled.bbor.BoundingBoxOutlineReloaded.chunkLoaded(this);
}
Expand Down

0 comments on commit cac25ff

Please sign in to comment.