-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #624 from mrsterner/1.19.2/update
1.19.2/update
- Loading branch information
Showing
206 changed files
with
10,659 additions
and
1,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ body: | |
- 1.16 | ||
- 1.18 | ||
- 1.19 | ||
- 1.20.x | ||
validations: | ||
required: true | ||
- type: dropdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ body: | |
- 1.16 | ||
- 1.18 | ||
- 1.19 | ||
- 1.20.x | ||
validations: | ||
required: true | ||
- type: dropdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,26 @@ jobs: | |
name: "Validate Gradle wrapper" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true # Clone with vs-core submodule | ||
- uses: gradle/wrapper-validation-action@v1 | ||
|
||
json-yaml-validate: | ||
name: "Validate Json/Yaml files" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write # enable write permissions for pull request comments | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: json-yaml-validate | ||
id: json-yaml-validate | ||
uses: GrantBirki/[email protected] | ||
with: | ||
comment: "true" # enable comment mode | ||
|
||
test-server: | ||
name: Test Server | ||
strategy: | ||
|
@@ -25,7 +40,7 @@ jobs: | |
timeout-minutes: 20 # Fail after 20 minutes | ||
steps: | ||
- name: Shallow Clone (--recurse-submodules) | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "vs-core"] | ||
path = vs-core | ||
url = https://github.com/ValkyrienSkies/vs-core | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# New Features | ||
* LOD that adds collision shapes for stairs/slabs/ect, and adds friction/elasticity/density properties to blocks | ||
* Multithreaded Krunch physics engine | ||
* Multithreaded terrain loading (so physics doesn't lag from terrain loading) | ||
* Allow ships to travel through Nether and End portals | ||
* Allow ships to be teleported between dimensions | ||
* Added physics entity support (currently only used to make balls with the Physics Entity Creator Item, but more coming soon 🙂) | ||
|
||
# Bugfixes | ||
* Fixed ships randomly getting stuck in the air | ||
* Fixed scaled ships not behaving correctly in water | ||
* Fixed the @v command argument to behave correctly like the @e argument | ||
* Fixed Ship Creator Item not scaling ships correctly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# New Features | ||
Nothing | ||
|
||
# Bugfixes | ||
* Removed old CBC mixin that doesn't work on new versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#https://mvn.devos.one/#/snapshots/io/github/fabricators_of_create/Porting-Lib/Porting-Lib | ||
port_lib_version=2.1.1096 | ||
port_lib_modules = accessors,base,entity,extensions,fake_players,networking,obj_loader,tags,transfer | ||
|
||
# https://modrinth.com/mod/cloth-config/version/8.3.103+fabric | ||
cloth_config_version = 8.3.103 | ||
|
||
# https://modrinth.com/mod/sodium/versions | ||
sodium_version = mc1.19.2-0.4.4 |
35 changes: 35 additions & 0 deletions
35
common/src/main/java/org/valkyrienskies/mod/compat/FlywheelEvents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.valkyrienskies.mod.compat; | ||
|
||
import com.jozufozu.flywheel.backend.instancing.InstanceWorld; | ||
import java.util.Collections; | ||
import java.util.Set; | ||
import java.util.WeakHashMap; | ||
import org.valkyrienskies.core.impl.hooks.VSEvents.ShipUnloadEventClient; | ||
import org.valkyrienskies.mod.mixinducks.MixinBlockEntityInstanceManagerDuck; | ||
|
||
public class FlywheelEvents { | ||
static { | ||
registerEvents(); | ||
} | ||
|
||
private static final Set<InstanceWorld> weakLoadedInstanceWorlds = | ||
Collections.newSetFromMap( | ||
new WeakHashMap<>() | ||
); | ||
|
||
private static synchronized void registerEvents() { | ||
ShipUnloadEventClient.Companion.on(event -> { | ||
for (final InstanceWorld instanceWorld : weakLoadedInstanceWorlds) { | ||
((MixinBlockEntityInstanceManagerDuck) instanceWorld.getBlockEntityInstanceManager()).vs$removeShipManager(event.getShip()); | ||
} | ||
}); | ||
} | ||
|
||
public static void onInstanceWorldLoad(final InstanceWorld instanceWorld) { | ||
weakLoadedInstanceWorlds.add(instanceWorld); | ||
} | ||
|
||
public static void onInstanceWorldUnload(final InstanceWorld instanceWorld) { | ||
weakLoadedInstanceWorlds.remove(instanceWorld); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...n/src/main/java/org/valkyrienskies/mod/mixin/accessors/server/level/ChunkMapAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.valkyrienskies.mod.mixin.accessors.server.level; | ||
|
||
import it.unimi.dsi.fastutil.longs.LongSet; | ||
import java.util.function.BooleanSupplier; | ||
import net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket; | ||
import net.minecraft.server.level.ChunkHolder; | ||
import net.minecraft.server.level.ChunkMap; | ||
import net.minecraft.server.level.ChunkMap.DistanceManager; | ||
import net.minecraft.server.level.ServerPlayer; | ||
import net.minecraft.world.entity.ai.village.poi.PoiManager; | ||
import net.minecraft.world.level.ChunkPos; | ||
import net.minecraft.world.level.chunk.ChunkAccess; | ||
import net.minecraft.world.level.chunk.ChunkStatus; | ||
import org.apache.commons.lang3.mutable.MutableObject; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
@Mixin(ChunkMap.class) | ||
public interface ChunkMapAccessor { | ||
@Invoker("updateChunkTracking") | ||
void callUpdateChunkTracking(ServerPlayer player, ChunkPos pos, | ||
MutableObject<ClientboundLevelChunkWithLightPacket> packets, | ||
boolean withinMaxWatchDistance, boolean withinViewDistance); | ||
|
||
@Invoker("getChunks") | ||
Iterable<ChunkHolder> callGetChunks(); | ||
|
||
@Invoker("getVisibleChunkIfPresent") | ||
ChunkHolder callGetVisibleChunkIfPresent(long l); | ||
|
||
@Invoker("save") | ||
boolean callSave(ChunkAccess chunkAccess); | ||
|
||
@Accessor("toDrop") | ||
LongSet getToDrop(); | ||
|
||
@Invoker("processUnloads") | ||
void callProcessUnloads(BooleanSupplier booleanSupplier); | ||
|
||
@Accessor("poiManager") | ||
PoiManager getPoiManager(); | ||
|
||
@Invoker("markPosition") | ||
byte callMarkPosition(ChunkPos chunkPos, ChunkStatus.ChunkType chunkType); | ||
|
||
@Accessor("distanceManager") | ||
DistanceManager getDistanceManager(); | ||
} |
14 changes: 14 additions & 0 deletions
14
...ain/java/org/valkyrienskies/mod/mixin/accessors/server/level/DistanceManagerAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.valkyrienskies.mod.mixin.accessors.server.level; | ||
|
||
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; | ||
import net.minecraft.server.level.DistanceManager; | ||
import net.minecraft.server.level.Ticket; | ||
import net.minecraft.util.SortedArraySet; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(DistanceManager.class) | ||
public interface DistanceManagerAccessor { | ||
@Accessor("tickets") | ||
Long2ObjectOpenHashMap<SortedArraySet<Ticket<?>>> getTickets(); | ||
} |
Oops, something went wrong.