mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
fix: Teleport Invulnerability oversight & incorrect values on Sponge (#671)
This commit is contained in:
1 parent
0eeab972e4
commit
afae073ab7
9 files changed
+41
-2
No files matched your search
@@ -106,6 +106,7 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
|
||||
private final Set<SavedUser> savedUsers = Sets.newHashSet();
|
||||
private final ConcurrentMap<String, List<String>> globalPlayerList = Maps.newConcurrentMap();
|
||||
private final Set<UUID> currentlyOnWarmup = Sets.newHashSet();
|
||||
private final Set<UUID> currentlyInvulnerable = Sets.newHashSet();
|
||||
private MinecraftServer minecraftServer;
|
||||
|
||||
private Settings settings;
|
||||
|
||||
@@ -177,6 +177,13 @@ public class FabricUser extends OnlineUser {
|
||||
plugin.runSyncDelayed(() -> player.setInvulnerable(false), this, invulnerabilityTimeInTicks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeInvulnerabilityIfPermitted() {
|
||||
if (plugin.isInvulnerable(this.getUuid())) {
|
||||
player.setInvulnerable(false);
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public ServerPlayerEntity getPlayer() {
|
||||
return player;
|
||||
|
||||
Reference in new issue
Block a user