Skip to content

Commit

Permalink
Fix format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gecolay committed Apr 25, 2024
1 parent fb6c0e0 commit 2e09d3a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/dev/geco/gsit/events/EntityEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public void EDisE(EntityDismountEvent Event) {

Player player = (Player) Event.getEntity();

if (GPM.getSitManager().isSitting(player) && (!GPM.getCManager().GET_UP_SNEAK || (!GPM.getSitManager().removeSeat(player, GetUpReason.GET_UP, true)))) {
if(GPM.getSitManager().isSitting(player) && (!GPM.getCManager().GET_UP_SNEAK || (!GPM.getSitManager().removeSeat(player, GetUpReason.GET_UP, true)))) {

Event.setCancelled(true);
return;
}

if (GPM.getPoseManager().isPosing(player) && (!GPM.getCManager().GET_UP_SNEAK || !GPM.getPoseManager().removePose(player, GetUpReason.GET_UP, true))) {
if(GPM.getPoseManager().isPosing(player) && (!GPM.getCManager().GET_UP_SNEAK || !GPM.getPoseManager().removePose(player, GetUpReason.GET_UP, true))) {

Event.setCancelled(true);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public void EDisE(EntityDismountEvent Event) {

Player player = (Player) Event.getEntity();

if (GPM.getSitManager().isSitting(player) && (!GPM.getCManager().GET_UP_SNEAK || (!GPM.getSitManager().removeSeat(player, GetUpReason.GET_UP, true)))) {
if(GPM.getSitManager().isSitting(player) && (!GPM.getCManager().GET_UP_SNEAK || (!GPM.getSitManager().removeSeat(player, GetUpReason.GET_UP, true)))) {

Event.setCancelled(true);
return;
}

if (GPM.getPoseManager().isPosing(player) && (!GPM.getCManager().GET_UP_SNEAK || !GPM.getPoseManager().removePose(player, GetUpReason.GET_UP, true))) {
if(GPM.getPoseManager().isPosing(player) && (!GPM.getCManager().GET_UP_SNEAK || !GPM.getPoseManager().removePose(player, GetUpReason.GET_UP, true))) {

Event.setCancelled(true);
return;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/dev/geco/gsit/manager/SVManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SVManager {
private final GSitMain GPM;

private final String SERVER_VERSION;
private String PACKAGE_PATH;
private final String PACKAGE_PATH;
private boolean AVAILABLE = true;

protected final HashMap<String, String> VERSION_MAPPING = new HashMap<>(); {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ private String replaceLegacyColors(String text) {
Matcher matcher = HEX_PATTERN.matcher(text);
StringBuilder result = new StringBuilder(text.length());
int lastIndex = 0;
while (matcher.find()) {
while(matcher.find()) {
result.append(text, lastIndex, matcher.start()).append("<color:").append(matcher.group()).append(">");
lastIndex = matcher.end();
}
result.append(text, lastIndex, text.length());
for (Map.Entry<String, String> tag : TAGS.entrySet()) {
for(Map.Entry<String, String> tag : TAGS.entrySet()) {
String key = tag.getKey();
String value = tag.getValue();
String upperKey = key.toUpperCase();
Expand Down

0 comments on commit 2e09d3a

Please sign in to comment.