Skip to content

Commit

Permalink
Updated FTB-Teams dependency -> 2001.2.0
Browse files Browse the repository at this point in the history
- Updated API calls.
  • Loading branch information
Anthony O'Gorman committed Mar 22, 2024
1 parent 090202b commit 81f865a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 81f865a

Please sign in to comment.