Skip to content

Commit

Permalink
feat: Compile v1_21_R1 nms module with Spigot 1.21.1 for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SpraxDev committed Aug 11, 2024
1 parent 91a92bc commit 97a9e5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup_project_workspace/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs:

- uses: SpraxDev/Action-SpigotMC@v5
with:
versions: 1.20.6, 1.21
versions: 1.20.6, 1.21.1
remapped: true
sftpCacheHost: ${{ inputs.spigot_buildtools_sftp_host }}
sftpCachePort: ${{ inputs.spigot_buildtools_sftp_port }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public enum ServerVersion {
VERSION_TO_REVISION.put("1.20.5", "v1_20_R4");
VERSION_TO_REVISION.put("1.20.6", "v1_20_R4");
VERSION_TO_REVISION.put("1.21", "v1_21_R1");
VERSION_TO_REVISION.put("1.21.1", "v1_21_R1");

if (Bukkit.getServer() != null) {
String srvPackage = Bukkit.getServer().getClass().getPackage().getName();
Expand Down
2 changes: 1 addition & 1 deletion NMS/NMS-v1_21_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<java.version>21</java.version>
<java.release>21</java.release>

<nms.ver>1.21-R0.1-SNAPSHOT</nms.ver>
<nms.ver>1.21.1-R0.1-SNAPSHOT</nms.ver>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AnvilInventoryCustom extends CraftInventoryAnvil {
final InventoryHolder holder;

public AnvilInventoryCustom(InventoryHolder holder, Location location, Container inventory, Container resultInventory, AnvilMenu container) {
super(location, inventory, resultInventory, container);
super(location, inventory, resultInventory);

this.holder = holder;
}
Expand Down

0 comments on commit 97a9e5f

Please sign in to comment.