Skip to content

Commit

Permalink
Add compatibility with new version of TechUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
Techcable committed Jan 7, 2015
1 parent 2d2d0f6 commit 75b72e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
8 changes: 2 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>techcable-repo</id>
<url>http://repo.techcable.net/content/groups/public/</url>
Expand Down Expand Up @@ -60,8 +56,8 @@
<scope>compile</scope>
</dependency>
<dependency>
<groupId>techcable.minecraft</groupId>
<artifactId>techutils</artifactId>
<groupId>net.techcable.minecraft.techutils</groupId>
<artifactId>core</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/trc202/CombatTag/CombatTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
import techcable.minecraft.npclib.NPC;
import techcable.minecraft.npclib.NPCLib;
import techcable.minecraft.techutils.TechUtils;
import techcable.minecraft.techutils.offlineplayers.AdvancedOfflinePlayer;

import lombok.Getter;

Expand Down
1 change: 0 additions & 1 deletion src/main/java/techcable/minecraft/combattag/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import techcable.minecraft.npclib.NPC;
import techcable.minecraft.techutils.TechUtils;
import techcable.minecraft.techutils.entity.TechPlayer;
import techcable.minecraft.techutils.offlineplayers.AdvancedOfflinePlayer;

import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.util.List;
import java.util.UUID;

import net.techcable.minecraft.techutils.offlineplayer.PlayerData;

import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
Expand All @@ -19,10 +21,8 @@
import techcable.minecraft.techutils.InventoryUtils;
import techcable.minecraft.techutils.TechUtils;
import techcable.minecraft.techutils.UUIDUtils;
import techcable.minecraft.techutils.offlineplayers.AdvancedOfflinePlayer;
import techcable.minecraft.techutils.utils.EasyCache;
import techcable.minecraft.techutils.utils.EasyCache.Loader;

import lombok.*;

@Getter
Expand Down Expand Up @@ -52,11 +52,11 @@ public void spawn(Location toSpawn) {


public void syncInventory() {
AdvancedOfflinePlayer player = getPlayer().getAdvancedOfflinePlayer();
PlayerData player = getPlayer().getAdvancedOfflinePlayer();
if (getNpc().getEntity().isDead()) {
InventoryUtils.emptyInventory(player);
} else {
AdvancedOfflinePlayer npcPlayer = TechUtils.getAdvancedOfflinePlayer(getAsPlayer());
PlayerData npcPlayer = TechUtils.getPlayerData(getAsPlayer());
InventoryUtils.copy(npcPlayer, player);
}
}
Expand Down

0 comments on commit 75b72e0

Please sign in to comment.