Skip to content

Commit

Permalink
Small, inconsequential changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Feb 21, 2021
1 parent e2df486 commit 2974afd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.geysermc.connector.network.session.GeyserSession;
import org.geysermc.connector.network.session.cache.ChunkCache;
import org.geysermc.connector.network.translators.inventory.translators.LecternInventoryTranslator;
import org.geysermc.connector.network.translators.world.block.BlockTranslator;
import org.geysermc.connector.utils.GameRule;

public class GeyserWorldManager extends WorldManager {
Expand All @@ -49,7 +50,7 @@ public int getBlockAt(GeyserSession session, int x, int y, int z) {
if (chunkCache != null) { // Chunk cache can be null if the session is closed asynchronously
return chunkCache.getBlockAt(x, y, z);
}
return 0;
return BlockTranslator.JAVA_AIR_ID;
}

@Override
Expand Down Expand Up @@ -105,7 +106,7 @@ public NbtMap getLecternDataAt(GeyserSession session, int x, int y, int z, boole
.putString("text", "")
.build())
.build());
lecternTag.putInt("page", -1); // I'm surprisingly glad this exists - it forces Bedrock to stop reading immediately
lecternTag.putInt("page", -1); // I'm surprisingly glad this exists - it forces Bedrock to stop reading immediately. Usually.
return lecternTag.build();
}

Expand Down

0 comments on commit 2974afd

Please sign in to comment.