Skip to content

Commit

Permalink
🐛 fix(AntigravityBubble): Fix #183 part 2, if there isn't a location,…
Browse files Browse the repository at this point in the history
… add it
  • Loading branch information
ProfElements committed Aug 21, 2023
1 parent 8fced6e commit b28e063
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void tick(Block b, SlimefunItem item) {
Player p = (Player) entity;

if (!p.getAllowFlight() && (p.getGameMode() != GameMode.CREATIVE || p.getGameMode() != GameMode.SPECTATOR)) {
enabledPlayers.get(b.getLocation()).add(p.getUniqueId());
enabledPlayers.getOrDefault(b.getLocation(), new HashSet<>()).add(p.getUniqueId());
p.setAllowFlight(true);
}
}
Expand Down

0 comments on commit b28e063

Please sign in to comment.