Skip to content

Commit

Permalink
Fix block physics async compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jul 4, 2023
1 parent 3a68d7e commit a5ab7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/minecraft/net/minecraft/world/World.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
+
+ // CraftBukkit start
+ CraftWorld world = this.getWorld();
+ if (world != null) {
+ if (world != null && !AsyncCatcher.catchAsync()) {
+ BlockPhysicsEvent event = new BlockPhysicsEvent(world.getBlockAt(p_241211_1_.func_177958_n(), p_241211_1_.func_177956_o(), p_241211_1_.func_177952_p()), CraftBlockData.fromData(p_241211_2_));
+ this.getCBServer().getPluginManager().callEvent(event);
+ if (event.isCancelled()) {
Expand Down

0 comments on commit a5ab7a6

Please sign in to comment.