mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Fabric 1.20.1 & dependency updates
This commit is contained in:
6 files changed
+12
-11
No files matched your search
@@ -27,7 +27,7 @@ modrinth {
|
|||||||
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
|
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
|
||||||
required.project("luckperms")
|
required.project("luckperms")
|
||||||
optional.project("miniplaceholders")
|
optional.project("miniplaceholders")
|
||||||
gameVersions.add("1.19.4")
|
gameVersions.addAll("1.19.4", "1.20.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
//val projectVersion = version as String
|
//val projectVersion = version as String
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ hangarPublish.publications.register("plugin") {
|
|||||||
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
||||||
platforms.register(Platforms.PAPER) {
|
platforms.register(Platforms.PAPER) {
|
||||||
jar.set(project(":carbonchat-paper").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
|
jar.set(project(":carbonchat-paper").the<CarbonPlatformExtension>().jarTask.flatMap { it.archiveFile })
|
||||||
platformVersions.add("1.19.4")
|
platformVersions.add("1.19.4-1.20.1")
|
||||||
dependencies {
|
dependencies {
|
||||||
url("LuckPerms", "https://luckperms.net/")
|
url("LuckPerms", "https://luckperms.net/")
|
||||||
hangar("EssentialsX", "Essentials") {
|
hangar("EssentialsX", "Essentials") {
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ dependencies {
|
|||||||
minecraft(libs.fabricMinecraft)
|
minecraft(libs.fabricMinecraft)
|
||||||
mappings(loom.officialMojangMappings())
|
mappings(loom.officialMojangMappings())
|
||||||
modImplementation(libs.fabricLoader)
|
modImplementation(libs.fabricLoader)
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api:0.76.0+1.19.4")
|
modImplementation("net.fabricmc.fabric-api:fabric-api:0.83.0+1.20.1")
|
||||||
modImplementation("net.fabricmc.fabric-api:fabric-api-deprecated:0.76.0+1.19.4") // LuckPerms needs to work at dev time
|
modImplementation("net.fabricmc.fabric-api:fabric-api-deprecated:0.83.0+1.20.1") // LuckPerms needs to work at dev time
|
||||||
|
|
||||||
carbon(projects.carbonchatCommon) {
|
carbon(projects.carbonchatCommon) {
|
||||||
exclude("net.kyori", "adventure-api")
|
exclude("net.kyori", "adventure-api")
|
||||||
@@ -72,5 +72,6 @@ tasks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
modrinth {
|
modrinth {
|
||||||
|
gameVersions.set(listOf(libs.versions.fabricMinecraft.get()))
|
||||||
loaders.addAll("fabric")
|
loaders.addAll("fabric")
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ public class FabricChatHandler implements ServerMessageEvents.AllowChatMessage {
|
|||||||
|
|
||||||
final Component nativeMessage = FabricAudiences.nonWrappingSerializer().serialize(finishedMessage);
|
final Component nativeMessage = FabricAudiences.nonWrappingSerializer().serialize(finishedMessage);
|
||||||
final PlayerChatMessage customChatMessage = new PlayerChatMessage(chatMessage.link(), chatMessage.signature(), chatMessage.signedBody(), nativeMessage, FilterMask.FULLY_FILTERED);
|
final PlayerChatMessage customChatMessage = new PlayerChatMessage(chatMessage.link(), chatMessage.signature(), chatMessage.signedBody(), nativeMessage, FilterMask.FULLY_FILTERED);
|
||||||
final ChatType.Bound customBound = ChatType.bind(CarbonChatFabric.CHAT_TYPE, serverPlayer.level.registryAccess(), nativeMessage);
|
final ChatType.Bound customBound = ChatType.bind(CarbonChatFabric.CHAT_TYPE, serverPlayer.level().registryAccess(), nativeMessage);
|
||||||
|
|
||||||
if (recipient instanceof CommandSourceStack recipientSource) {
|
if (recipient instanceof CommandSourceStack recipientSource) {
|
||||||
recipientSource.sendChatMessage(new OutgoingChatMessage.Player(customChatMessage), false, customBound);
|
recipientSource.sendChatMessage(new OutgoingChatMessage.Player(customChatMessage), false, customBound);
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public class CarbonPlayerFabric extends WrappedCarbonPlayer implements Forwardin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return player.get().getLevel().equals(otherPlayer.getLevel());
|
return player.get().level().equals(otherPlayer.level());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ plugins:
|
|||||||
versions:
|
versions:
|
||||||
indra: *indra
|
indra: *indra
|
||||||
licenser: 0.6.1
|
licenser: 0.6.1
|
||||||
shadow: 8.1.0
|
shadow: 8.1.1
|
||||||
adventure: 4.13.0
|
adventure: 4.14.0
|
||||||
cloud: 1.8.3
|
cloud: 1.8.3
|
||||||
cloudSponge: 1.8.0-SNAPSHOT
|
cloudSponge: 1.8.0-SNAPSHOT
|
||||||
configurate: 4.1.2
|
configurate: 4.1.2
|
||||||
typesafeConfig: 1.4.1
|
typesafeConfig: 1.4.1
|
||||||
checkerQual: 3.32.0
|
checkerQual: 3.35.0
|
||||||
stylecheck: 0.1
|
stylecheck: 0.1
|
||||||
gson: 2.10
|
gson: 2.10
|
||||||
guava: 30.1-jre
|
guava: 30.1-jre
|
||||||
@@ -35,8 +35,8 @@ versions:
|
|||||||
guice: 5.1.0
|
guice: 5.1.0
|
||||||
velocityApi: 3.2.0-SNAPSHOT
|
velocityApi: 3.2.0-SNAPSHOT
|
||||||
geantyref: 1.3.11
|
geantyref: 1.3.11
|
||||||
fabricMinecraft: 1.19.4
|
fabricMinecraft: 1.20.1
|
||||||
fabricLoader: 0.14.17
|
fabricLoader: 0.14.21
|
||||||
adventurePlatformFabric: 5.8.0
|
adventurePlatformFabric: 5.8.0
|
||||||
luckPermsApi: 5.3
|
luckPermsApi: 5.3
|
||||||
essentialsx: 2.19.3
|
essentialsx: 2.19.3
|
||||||
|
|||||||
Reference in new issue
Block a user