-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.20.2] Initial port work; port resource loader #336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something to be noted: QuiltMC/quilt-mappings#469 has broken the "all blocks are in net/minecraft/block
" scheme, meaning that the buildscript should be fixed in order to account for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second pass; third incoming later;
There's still a failing check; don't worry, you just have to run ./gradlew applyLicenses
build-logic/src/main/java/qsl/internal/analysis/ClassAnalysisUtils.java
Outdated
Show resolved
Hide resolved
@@ -39,4 +40,18 @@ public interface QuiltResourcePackProfile { | |||
default @NotNull ResourcePackActivationType getActivationType() { | |||
return ResourcePackActivationType.NORMAL; | |||
} | |||
|
|||
static ResourcePackProfile.ResourcePackFactory identityFactory(ResourcePack pack) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this in API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to API after noticing that the testmods need it. Vanilla does exactly the same thing, but their implementation BuiltinResourcePackProvider#method_52435(ResourcePack)
is protected
@EnnuiL - I can't apply licenses because the licenser is completely broken on Windows (QuiltMC/quilt-gradle-licenser#9) |
I'll see if I can just only commit the file update that GHA reports it wants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please address the CI errors
@@ -38,6 +38,7 @@ | |||
import com.google.common.util.concurrent.ThreadFactoryBuilder; | |||
import com.google.gson.JsonObject; | |||
import com.mojang.logging.LogUtils; | |||
import net.minecraft.SharedConstants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget about checkstyle
As mentioned on the Discord, I have the intention of taking over this PR in order to kickstart progress on QSL 1.20.2 |
@@ -254,7 +254,7 @@ public static void send(ServerPlayerEntity player, Identifier channelName, Packe | |||
Objects.requireNonNull(channelName, "Channel name cannot be null"); | |||
Objects.requireNonNull(buf, "Packet byte buf cannot be null"); | |||
|
|||
player.networkHandler.sendPacket(createS2CPacket(channelName, buf)); | |||
player.networkHandler.(createS2CPacket(channelName, buf)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
player.networkHandler.(createS2CPacket(channelName, buf)); | |
player.networkHandler.getConnection().send(createS2CPacket(channelName, buf)); |
No description provided.