Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update Polymer Port to 1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Mar 8, 2022
1 parent 5249fe0 commit 0764b2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ dependencies {

modCompileOnly 'curse.maven:repurposed-structures-fabric-391366:3542863'

modImplementation include("eu.pb4:sgui:1.0.0-rc6+1.18-pre5")
modImplementation include("eu.pb4:sgui:1.0.0+1.18.1")
modImplementation include("eu.pb4:hologram-api:0.2.1+1.18-pre5")
modImplementation include("eu.pb4:polymer:0.2.0-beta.25+1.18.1")
modImplementation include("fr.catcore:server-translations-api:1.4.8+1.18-pre1")
modImplementation include("eu.pb4:polymer:0.2.0-beta.29+1.18.2")
modImplementation include("fr.catcore:server-translations-api:1.4.9+1.18.2-rc1")
}

loom {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ archives_base_name=wraith-waystones
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.47.8+1.18.2

sub_version=2
sub_version=0

8 changes: 4 additions & 4 deletions src/main/java/wraith/waystones/gui/UniversalWaystoneGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void updateWaystones() {
}
}
}
this.sortedWaystones.sort(Comparator.comparing(a -> Waystones.WAYSTONE_STORAGE.getWaystone(a).getWaystoneName()));
this.sortedWaystones.sort(Comparator.comparing(a -> Waystones.WAYSTONE_STORAGE.getWaystoneData(a).getWaystoneName()));
}

@Override
Expand All @@ -150,7 +150,7 @@ protected int getPageAmount() {
protected DisplayElement getElement(int id) {
if (this.sortedWaystones.size() > id) {
var hash = this.sortedWaystones.get(id);
var tmpWaystone = Waystones.WAYSTONE_STORAGE.getWaystone(hash);
var tmpWaystone = Waystones.WAYSTONE_STORAGE.getWaystoneData(hash);

var builder = new GuiElementBuilder(tmpWaystone.isGlobal() ? Items.ENDER_EYE : Items.ENDER_PEARL)
.setName(new LiteralText(tmpWaystone.getWaystoneName()))
Expand All @@ -168,7 +168,7 @@ protected DisplayElement getElement(int id) {
}

private void handleSelection(int i, ClickType type, SlotActionType actionType, String hash) {
var waystone = Waystones.WAYSTONE_STORAGE.getWaystone(hash);
var waystone = Waystones.WAYSTONE_STORAGE.getWaystoneEntity(hash);
if (waystone == null) {
return;
}
Expand Down Expand Up @@ -209,7 +209,7 @@ protected DisplayElement getNavElement(int id) {

protected DisplayElement getCost() {
String cost = Config.getInstance().teleportType();
int amount = Config.getInstance().teleportCost();
int amount = Config.getInstance().baseTeleportCost();

Item item;
String type;
Expand Down

0 comments on commit 0764b2d

Please sign in to comment.