Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Mar 29, 2024
1 parent 8352c39 commit c74b369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patches/minecraft/net/minecraft/world/World.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
public Chunk func_212866_a_(int p_212866_1_, int p_212866_2_) {
return (Chunk)this.func_217348_a(p_212866_1_, p_212866_2_, ChunkStatus.field_222617_m);
}
@@ -173,6 +_,17 @@
@@ -173,24 +_,83 @@
}

public boolean func_241211_a_(BlockPos p_241211_1_, BlockState p_241211_2_, int p_241211_3_, int p_241211_4_) {
Expand All @@ -187,10 +187,10 @@
if (func_189509_E(p_241211_1_)) {
return false;
} else if (!this.field_72995_K && this.func_234925_Z_()) {
@@ -180,17 +_,66 @@
return false;
} else {
Chunk chunk = this.func_175726_f(p_241211_1_);
Block block = p_241211_2_.func_177230_c();
- Block block = p_241211_2_.func_177230_c();
- BlockState blockstate = chunk.func_177436_a(p_241211_1_, p_241211_2_, (p_241211_3_ & 64) != 0);
+ // CraftBukkit start - capture blockstates
+ boolean captured = false;
Expand Down

0 comments on commit c74b369

Please sign in to comment.