This commit is contained in:
Wagyourtail 2021-11-11 12:49:47 -07:00
parent 749fd4fac3
commit 9a9358bc78
6 changed files with 9 additions and 9 deletions

View File

@ -89,7 +89,7 @@ dependencies {
mappings loom.layered() {
officialMojangMappings()
//technically optional, but really helpful in dev:
parchment("org.parchmentmc.data:parchment-1.17.1:2021.10.24@zip" as String)
// parchment("org.parchmentmc.data:parchment-1.17.1:2021.10.24@zip" as String)
}
minecraft "com.mojang:minecraft:${project.minecraft_version}"
if (!compileType.equals("FORGE")) {

View File

@ -1,12 +1,12 @@
org.gradle.jvmargs=-Xmx2048M
mod_version=1.7.1
mod_version=1.8.0
maven_group=baritone
archives_base_name=baritone
minecraft_version=1.17.1
minecraft_version=1.18-pre1
forge_version=1.17.1-37.0.69
fabric_version=0.11.6
fabric_version=0.12.5
# # un comment for forge debugging default (as opposed to fabric)
# baritone.forge_build=true

View File

@ -64,10 +64,10 @@ public class MixinClientPlayNetHandler {
}*/
@Inject(
method = "handleLevelChunk",
method = "handleLevelChunkWithLight",
at = @At("RETURN")
)
private void postHandleChunkData(ClientboundLevelChunkPacket packetIn, CallbackInfo ci) {
private void postHandleChunkData(ClientboundLevelChunkWithLightPacket packetIn, CallbackInfo ci) {
for (IBaritone ibaritone : BaritoneAPI.getProvider().getAllBaritones()) {
LocalPlayer player = ibaritone.getPlayerContext().player();
if (player != null && player.connection == (ClientPacketListener) (Object) this) {

View File

@ -26,6 +26,6 @@
"depends": {
"fabricloader": ">=0.11.0",
"minecraft": "1.17.x"
"minecraft": "1.18.x"
}
}

View File

@ -147,7 +147,7 @@ public enum WorldScanner implements IWorldScanner {
boolean foundWithinY = false;
for (int y0 : coordinateIterationOrder) {
LevelChunkSection section = chunkInternalStorageArray[y0];
if (section == null || LevelChunkSection.isEmpty(section)) {
if (section == null || section.hasOnlyAir()) {
continue;
}
int yReal = y0 << 4;

View File

@ -169,7 +169,7 @@ public class BlockStateInterface {
// get the block at x,y,z from this chunk WITHOUT creating a single blockpos object
public static BlockState getFromChunk(LevelChunk chunk, int x, int y, int z) {
LevelChunkSection section = chunk.getSections()[y >> 4];
if (LevelChunkSection.isEmpty(section)) {
if (section.hasOnlyAir()) {
return AIR;
}
return section.getBlockState(x & 15, y & 15, z & 15);