Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ public void readFromPacketNBT(CompoundTag cmp) {

@SubscribeEventWrapper
public void onPlayLevelSound(PlayLevelSoundEventWrapper.AtPosition event) {
if (getLevel() == null) {
return;
}
if (getLevel().isClientSide()) {
EventsWrapper.unregister(this);
return;
Expand All @@ -170,6 +173,9 @@ public void onPlayLevelSound(PlayLevelSoundEventWrapper.AtPosition event) {

@SubscribeEventWrapper
public void onPlayLevelSound(PlayLevelSoundEventWrapper.AtEntity event) {
if (getLevel() == null) {
return;
}
if (getLevel().isClientSide()) {
EventsWrapper.unregister(this);
return;
Expand Down
Loading