Skip to content

Commit

Permalink
Merge branch 'gecolay:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq authored Jul 19, 2024
2 parents 3a97aa6 + 1fdec06 commit 6fe0d4b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/dev/geco/gsit/link/PlaceholderAPILink.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ public class PlaceholderAPILink extends PlaceholderExpansion {
@Override
public @NotNull List<String> getPlaceholders() { return Arrays.asList("crawling", "emoting", "playertoggle", "posing", "sitting", "toggle"); }

// https://wiki.placeholderapi.com/developers/creating-a-placeholderexpansion/#making-an-internal-expansion
@Override
public boolean persist() { return true; }

@Override
public String onRequest(OfflinePlayer Player, @NotNull String Params) {

Expand All @@ -57,4 +56,4 @@ public String onRequest(OfflinePlayer Player, @NotNull String Params) {
return null;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void buildBlock(Location Location) {

blockLocation = Location;

player.sendBlockChange(blockLocation, blockData);
if(blockLocation != null) player.sendBlockChange(blockLocation, blockData);
}

private void destoryBlock() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void buildBlock(Location Location) {

blockLocation = Location;

player.sendBlockChange(blockLocation, blockData);
if(blockLocation != null) player.sendBlockChange(blockLocation, blockData);
}

private void destoryBlock() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void buildBlock(Location Location) {

blockLocation = Location;

player.sendBlockChange(blockLocation, blockData);
if(blockLocation != null) player.sendBlockChange(blockLocation, blockData);
}

private void destoryBlock() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void buildBlock(Location Location) {

blockLocation = Location;

player.sendBlockChange(blockLocation, blockData);
if(blockLocation != null) player.sendBlockChange(blockLocation, blockData);
}

private void destoryBlock() {
Expand Down

0 comments on commit 6fe0d4b

Please sign in to comment.