Skip to content

Commit

Permalink
Merge remote-tracking branch 'Slimefun/master'
Browse files Browse the repository at this point in the history
DEV - 1015

Slimefun日誌:
- 增加 1.19 兼容性
- 修復當放置機器在y=0以下的問題
  • Loading branch information
xMikux committed Jun 11, 2022
2 parents 2f8e1b0 + 2c4f886 commit 3bc6d14
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/discord-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Java JDK 17
uses: actions/setup-java@v3.2.0
uses: actions/setup-java@v3.3.0
with:
distribution: 'adopt'
java-version: '17'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3.2.0
uses: actions/setup-java@v3.3.0
with:
distribution: 'adopt'
java-version: '17'
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#### Additions
* Added Organic Food for Seagrass
* Added Organic Fertilizer for Seagrass
* Added compatibility for Minecraft 1.19

#### Changes
* Removed support for ChestTerminal
Expand All @@ -48,6 +49,7 @@
* Fixed #3534
* Fixed #3538
* Fixed #3548
* Fixed an issue with machines being placed below y=0

## Release Candidate 31 (14 Mar 2022)
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#31
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

| | 開發版 (最新) | "穩定版 (官方)" |
| ------------------ | -------- | -------- |
| **Minecraft 版本** | :video_game: **1.14.\* - 1.18.\*** | :video_game: **1.14.\* - 1.18.\*** |
| **Minecraft 版本** | :video_game: **1.14.\* - 1.19.\*** | :video_game: **1.14.\* - 1.18.\*** |
| **自動更新** | :heavy_check_mark: | :heavy_check_mark: |
| **頻繁的更新** | :heavy_check_mark: | :x: |
| **最新內容** | :heavy_check_mark: | :x: |
Expand Down
31 changes: 21 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<maven.compiler.target>1.8</maven.compiler.target>

<!-- Spigot properties -->
<spigot.version>1.18.1</spigot.version>
<spigot.version>1.19</spigot.version>
<spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs>

<!-- Default settings for sonarcloud.io -->
Expand Down Expand Up @@ -73,7 +73,7 @@
<repository>
<!-- WorldEdit -->
<id>worldedit-repo</id>
<url>https://maven.sk89q.com/repo</url>
<url>https://maven.enginehub.org/repo/</url>
</repository>
<repository>
<!-- PlaceholderAPI -->
Expand Down Expand Up @@ -146,7 +146,7 @@
<!-- Plugin for Unit Tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M6</version>
<version>3.0.0-M7</version>

<configuration>
<junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
Expand Down Expand Up @@ -208,6 +208,10 @@
<pattern>kong.unirest</pattern>
<shadedPattern>io.github.thebusybiscuit.slimefun4.libraries.unirest</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.lang</pattern>
<shadedPattern>io.github.thebusybiscuit.slimefun4.libraries.commons.lang</shadedPattern>
</relocation>
</relocations>

<!-- Exclude unneeded metadata files from shaded dependencies -->
Expand Down Expand Up @@ -350,7 +354,7 @@
<dependency>
<groupId>io.github.baked-libs</groupId>
<artifactId>dough-api</artifactId>
<version>1.1.3</version>
<version>1.2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -384,13 +388,13 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.5.1</version>
<version>4.6.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.seeseemelk</groupId>
<artifactId>MockBukkit-v1.18</artifactId>
<version>1.24.1</version>
<version>2.0.0</version>
<scope>test</scope>

<exclusions>
Expand All @@ -407,7 +411,7 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.2.8</version>
<version>7.2.10</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -421,7 +425,7 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.8</version>
<version>7.2.10</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -435,7 +439,7 @@
<dependency>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.212</version>
<version>2.1.214</version>
<scope>provided</scope>

<exclusions>
Expand Down Expand Up @@ -477,7 +481,7 @@
<dependency>
<groupId>com.github.LoneDev6</groupId>
<artifactId>itemsadder-api</artifactId>
<version>3.1.0b</version>
<version>3.1.6</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -502,5 +506,12 @@
</exclusion>
</exclusions>
</dependency>
<!-- TODO: Remove this dependency -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public enum MinecraftVersion {
*/
MINECRAFT_1_18(18, "1.18.x"),

/**
* This constant represents Minecraft (Java Edition) Version 1.19
* ("The Wild Update")
*/
MINECRAFT_1_19(19, "1.19.x"),

/**
* This constant represents an exceptional state in which we were unable
* to identify the Minecraft Version we are using
Expand Down
9 changes: 8 additions & 1 deletion src/main/resources/tags/block_placer_ignored_materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
"#minecraft:small_flowers",
"#minecraft:coral_blocks",
"#minecraft:corals",
"#minecraft:carpets",
{
"id" : "#minecraft:carpets",
"required" : false
},
{
"id" : "#minecraft:wool_carpets",
"required" : false
},
"#minecraft:banners",
"minecraft:sugar_cane",
"minecraft:cactus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ void testCompatibilities(String name, MinecraftVersion version) {
testCases.put("nether_ice_v1.16", new MinecraftVersion[] {
MinecraftVersion.MINECRAFT_1_16,
MinecraftVersion.MINECRAFT_1_17,
MinecraftVersion.MINECRAFT_1_18
MinecraftVersion.MINECRAFT_1_18,
MinecraftVersion.MINECRAFT_1_19
});

testCases.put("oil_v1.14", new MinecraftVersion[] {
Expand All @@ -117,7 +118,8 @@ void testCompatibilities(String name, MinecraftVersion version) {
});

testCases.put("oil_v1.18", new MinecraftVersion[] {
MinecraftVersion.MINECRAFT_1_18
MinecraftVersion.MINECRAFT_1_18,
MinecraftVersion.MINECRAFT_1_19
});

testCases.put("salt_v1.14", new MinecraftVersion[] {
Expand All @@ -128,7 +130,8 @@ void testCompatibilities(String name, MinecraftVersion version) {
});

testCases.put("salt_v1.18", new MinecraftVersion[] {
MinecraftVersion.MINECRAFT_1_18
MinecraftVersion.MINECRAFT_1_18,
MinecraftVersion.MINECRAFT_1_19
});

testCases.put("uranium_v1.14", new MinecraftVersion[] {
Expand All @@ -145,7 +148,8 @@ void testCompatibilities(String name, MinecraftVersion version) {
});

testCases.put("uranium_v1.18", new MinecraftVersion[] {
MinecraftVersion.MINECRAFT_1_18
MinecraftVersion.MINECRAFT_1_18,
MinecraftVersion.MINECRAFT_1_19
});
// @formatter:on

Expand Down
65 changes: 65 additions & 0 deletions src/test/resources/biomes/1.19.x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[
"minecraft:ocean",
"minecraft:plains",
"minecraft:desert",
"minecraft:windswept_hills",
"minecraft:forest",
"minecraft:taiga",
"minecraft:swamp",
"minecraft:mangrove_swamp",
"minecraft:river",
"minecraft:nether_wastes",
"minecraft:the_end",
"minecraft:frozen_ocean",
"minecraft:frozen_river",
"minecraft:snowy_plains",
"minecraft:mushroom_fields",
"minecraft:beach",
"minecraft:jungle",
"minecraft:sparse_jungle",
"minecraft:deep_ocean",
"minecraft:stony_shore",
"minecraft:snowy_beach",
"minecraft:birch_forest",
"minecraft:dark_forest",
"minecraft:snowy_taiga",
"minecraft:old_growth_pine_taiga",
"minecraft:windswept_forest",
"minecraft:savanna",
"minecraft:savanna_plateau",
"minecraft:badlands",
"minecraft:wooded_badlands",
"minecraft:small_end_islands",
"minecraft:end_midlands",
"minecraft:end_highlands",
"minecraft:end_barrens",
"minecraft:warm_ocean",
"minecraft:lukewarm_ocean",
"minecraft:cold_ocean",
"minecraft:deep_lukewarm_ocean",
"minecraft:deep_cold_ocean",
"minecraft:deep_frozen_ocean",
"minecraft:the_void",
"minecraft:sunflower_plains",
"minecraft:windswept_gravelly_hills",
"minecraft:flower_forest",
"minecraft:ice_spikes",
"minecraft:old_growth_birch_forest",
"minecraft:old_growth_spruce_taiga",
"minecraft:windswept_savanna",
"minecraft:eroded_badlands",
"minecraft:bamboo_jungle",
"minecraft:soul_sand_valley",
"minecraft:crimson_forest",
"minecraft:warped_forest",
"minecraft:basalt_deltas",
"minecraft:dripstone_caves",
"minecraft:lush_caves",
"minecraft:deep_dark",
"minecraft:meadow",
"minecraft:grove",
"minecraft:snowy_slopes",
"minecraft:frozen_peaks",
"minecraft:jagged_peaks",
"minecraft:stony_peaks"
]

0 comments on commit 3bc6d14

Please sign in to comment.