Skip to content

Commit

Permalink
fix: fix [Dynamism Tablet] usage crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutoy242 committed Feb 27, 2024
1 parent 1198e2f commit 0c9cb6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@@ -341,6 +341,9 @@ Consumer<ItemStack> {
}
toUse = traceEntity == null ? trace : traceEntity;
BlockPos targetPos = toUse.func_178782_a();
+ if (targetPos == null) {
+ return;
+ }
if (trace != null && traceEntity != null) {
double d1 = trace.field_72307_f.func_72438_d(base);
double d2 = traceEntity.field_72307_f.func_72438_d(base);

0 comments on commit 0c9cb6f

Please sign in to comment.