Skip to content

Commit

Permalink
Fix #55
Browse files Browse the repository at this point in the history
  • Loading branch information
ramidzkh committed Nov 7, 2023
1 parent 89771bd commit 0b667f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/src/main/java/appbot/botania/MECorporeaNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public MECorporeaNode(Level level, BlockPos pos, CorporeaSpark spark, IStorageMo

@Nullable
public static CorporeaNode getNode(Level level, CorporeaSpark spark) {
var accessor = AppliedBotanics.getInstance().meStorage((ServerLevel) level, spark.getAttachPos())
if (!(level instanceof ServerLevel serverLevel)) {
// todo: client-side animation?
return null;
}

var accessor = AppliedBotanics.getInstance().meStorage(serverLevel, spark.getAttachPos())
.find(Direction.UP);

if (accessor != null) {
Expand Down

0 comments on commit 0b667f8

Please sign in to comment.