Skip to content
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

Updated FTB-Teams dependency -> 2001.2.0 #154

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ dependencies {
implementation(project.the<DependencyManagementExtension>().deobf("curse.maven:applied-mekanistics-574300:4842281"))
implementation(project.the<DependencyManagementExtension>().deobf("curse.maven:ae2-things-forge-609977:4616683"))
// implementation(project.the<DependencyManagementExtension>().deobf("curse.maven:the-one-probe-245211:3927520"))
compileOnly(project.the<DependencyManagementExtension>().deobf("curse.maven:ftb-teams-404468:3890141"))
compileOnly(project.the<DependencyManagementExtension>().deobf("curse.maven:ftb-teams-404468:5176343"))
// compileOnly(project.the<DependencyManagementExtension>().deobf("curse.maven:applied-botanics-610632:3770580"))
// compileOnly(project.the<DependencyManagementExtension>().deobf("curse.maven:applied-botanics-610632:3770580"))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.the9grounds.aeadditions.util

import com.the9grounds.aeadditions.integration.Mods
import dev.ftb.mods.ftbteams.FTBTeamsAPI
import dev.ftb.mods.ftbteams.api.FTBTeamsAPI
import net.minecraft.nbt.CompoundTag
import net.minecraft.server.level.ServerPlayer
import net.minecraft.world.level.Level
Expand Down Expand Up @@ -35,7 +35,7 @@ data class ChannelInfo(val id: UUID, val level: Level, val name: String, val isP
}

if (Mods.FTBTEAMS.isEnabled) {
return FTBTeamsAPI.arePlayersInSameTeam(creator, player.uuid)
return FTBTeamsAPI.api().manager.arePlayersInSameTeam(creator, player.uuid)
}

return creator == player.uuid
Expand All @@ -44,7 +44,7 @@ data class ChannelInfo(val id: UUID, val level: Level, val name: String, val isP
fun hasAccessToDelete(player: ServerPlayer): Boolean {

if (Mods.FTBTEAMS.isEnabled) {
return FTBTeamsAPI.arePlayersInSameTeam(creator, player.uuid)
return FTBTeamsAPI.api().manager.arePlayersInSameTeam(creator, player.uuid)
}

return creator == player.uuid
Expand Down
Loading