Fix empty/null chunk section check in LevelChunk#getBlockData, rename… (#7039)

… patch and methods to make more sense with Mojang mappings
This commit is contained in:
Jason 2021-12-05 15:32:02 -08:00 committed by GitHub
parent 7c8fdc1fb6
commit fd263ef962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 166 additions and 163 deletions

View file

@ -21,10 +21,10 @@ This is based upon conclusions drawn from inspecting the assenmbly generated byt
They had 'callq' (invoke) instead of 'mov' (get from memory) instructions.
diff --git a/src/main/java/net/minecraft/core/Vec3i.java b/src/main/java/net/minecraft/core/Vec3i.java
index c33bac27edfdab4c3ee618c9ed39c629b1513f09..6de2ea6641433206027015695a0d10c80fe0e2f5 100644
index 749660a685a6a1e425681c64bbbfef32958a0808..ca9355da97b8569c9168487263977f75e60ab997 100644
--- a/src/main/java/net/minecraft/core/Vec3i.java
+++ b/src/main/java/net/minecraft/core/Vec3i.java
@@ -53,7 +53,7 @@ public class Vec3i implements Comparable<Vec3i> {
@@ -50,7 +50,7 @@ public class Vec3i implements Comparable<Vec3i> {
}
@Override
@ -33,7 +33,7 @@ index c33bac27edfdab4c3ee618c9ed39c629b1513f09..6de2ea6641433206027015695a0d10c8
if (this == object) {
return true;
} else if (!(object instanceof Vec3i)) {
@@ -71,7 +71,7 @@ public class Vec3i implements Comparable<Vec3i> {
@@ -68,7 +68,7 @@ public class Vec3i implements Comparable<Vec3i> {
}
@Override
@ -42,7 +42,7 @@ index c33bac27edfdab4c3ee618c9ed39c629b1513f09..6de2ea6641433206027015695a0d10c8
return (this.getY() + this.getZ() * 31) * 31 + this.getX();
}
@@ -84,15 +84,15 @@ public class Vec3i implements Comparable<Vec3i> {
@@ -81,15 +81,15 @@ public class Vec3i implements Comparable<Vec3i> {
}
}