Skip to content

Commit

Permalink
Fix spawn tracker mapping data check
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Aug 10, 2023
1 parent f4cc9d4 commit 0d14765
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public PacketHandler getSpawnTrackerWithDataHandler(EntityType fallingBlockType)

public PacketHandler getSpawnTrackerWithDataHandler1_19(EntityType fallingBlockType) {
return wrapper -> {
if (protocol.getMappingData() == null) {
return;
}

// Check against the UNMAPPED entity type
EntityType entityType = trackAndMapEntity(wrapper);
if (entityType == fallingBlockType) {
Expand Down

0 comments on commit 0d14765

Please sign in to comment.