Remove some male pronouns

This commit is contained in:
libraryaddict 2024-02-17 21:34:23 +13:00
parent 8ed27e8bd6
commit 9da0770f84
4 changed files with 10 additions and 10 deletions

View File

@ -489,7 +489,7 @@ public class DisguiseAPI {
} }
/** /**
* Set whether this player can see his own disguise or not. * Set whether this player can see their own disguise or not.
* *
* @param entity * @param entity
* @param canSeeSelfDisguises * @param canSeeSelfDisguises

View File

@ -655,7 +655,7 @@ public abstract class Disguise {
} }
/** /**
* Can the disguised view himself as the disguise * Can the disguised view themselves as the disguise
* *
* @return viewSelfDisguise * @return viewSelfDisguise
*/ */
@ -869,7 +869,7 @@ public abstract class Disguise {
} }
/** /**
* Can the disguised view himself as the disguise * Can the disguised view themselves as the disguise
* *
* @param viewSelfDisguise * @param viewSelfDisguise
* @return * @return
@ -1009,7 +1009,7 @@ public abstract class Disguise {
// Resend the disguised entity's packet // Resend the disguised entity's packet
DisguiseUtilities.refreshTrackers((TargetedDisguise) this); DisguiseUtilities.refreshTrackers((TargetedDisguise) this);
// If he is a player, then self disguise himself // Setup a scheduler for a self disguise
Bukkit.getScheduler().scheduleSyncDelayedTask(LibsDisguises.getInstance(), () -> DisguiseUtilities.setupFakeDisguise(Disguise.this), 2); Bukkit.getScheduler().scheduleSyncDelayedTask(LibsDisguises.getInstance(), () -> DisguiseUtilities.setupFakeDisguise(Disguise.this), 2);
if (isHidePlayer() && getEntity() instanceof Player) { if (isHidePlayer() && getEntity() instanceof Player) {

View File

@ -94,8 +94,8 @@ public class MiscDisguise extends TargetedDisguise {
((DroppedItemWatcher) getWatcher()).setItemStack(itemStack); ((DroppedItemWatcher) getWatcher()).setItemStack(itemStack);
break; break;
case FISHING_HOOK: // Entity ID of whoever is holding fishing rod case FISHING_HOOK: // Entity ID of whoever is holding fishing rod
case ARROW: // Entity ID of shooter. Used for "Is he on this scoreboard team and do I render it moving case ARROW: // Entity ID of shooter. Used for "Are they on this scoreboard team and do I render it moving
// through his body?" // through their body?"
case SPECTRAL_ARROW: case SPECTRAL_ARROW:
case SMALL_FIREBALL: // Unknown. Uses entity id of shooter. 0 if no shooter case SMALL_FIREBALL: // Unknown. Uses entity id of shooter. 0 if no shooter
case FIREBALL: // Unknown. Uses entity id of shooter. 0 if no shooter case FIREBALL: // Unknown. Uses entity id of shooter. 0 if no shooter

View File

@ -2094,7 +2094,7 @@ public class DisguiseUtilities {
if (entityTrackerEntry != null) { if (entityTrackerEntry != null) {
// TODO Store reflection fields // TODO Store reflection fields
// If the tracker exists. Remove himself from his tracker // If the tracker exists. Remove the player from their tracker
if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) { if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) {
ReflectionManager.getTrackedPlayers(entityTrackerEntry).remove(ReflectionManager.getPlayerConnectionOrPlayer(player)); ReflectionManager.getTrackedPlayers(entityTrackerEntry).remove(ReflectionManager.getPlayerConnectionOrPlayer(player));
} else { } else {
@ -2612,7 +2612,7 @@ public class DisguiseUtilities {
// TODO Store reflection fields // TODO Store reflection fields
// Check for code differences in PaperSpigot vs Spigot // Check for code differences in PaperSpigot vs Spigot
if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) { if (!isRunningPaper() || NmsVersion.v1_17.isSupported()) {
// Add himself to his own entity tracker // Add the player to their own entity tracker
ReflectionManager.getTrackedPlayers(entityTrackerEntry).add(ReflectionManager.getPlayerConnectionOrPlayer(player)); ReflectionManager.getTrackedPlayers(entityTrackerEntry).add(ReflectionManager.getPlayerConnectionOrPlayer(player));
} else { } else {
Field field = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayerMap"); Field field = ReflectionManager.getNmsField("EntityTrackerEntry", "trackedPlayerMap");
@ -2899,7 +2899,7 @@ public class DisguiseUtilities {
} }
/** /**
* Setup it so he can see himself when disguised * Setup it so he can see their own disguise when disguised
* *
* @param disguise * @param disguise
*/ */
@ -2921,7 +2921,7 @@ public class DisguiseUtilities {
// Remove the old disguise, else we have weird disguises around the place // Remove the old disguise, else we have weird disguises around the place
DisguiseUtilities.removeSelfDisguise(disguise); DisguiseUtilities.removeSelfDisguise(disguise);
// If the disguised player can't see himself. Return // If the disguised player can't see themselves. Return
if (!disguise.isSelfDisguiseVisible() || !PacketsManager.isViewDisguisesListenerEnabled() || player.getVehicle() != null) { if (!disguise.isSelfDisguiseVisible() || !PacketsManager.isViewDisguisesListenerEnabled() || player.getVehicle() != null) {
return; return;
} }