Skip to content

Commit

Permalink
Revert wand to just use golden wand id.
Browse files Browse the repository at this point in the history
Custom data is still having issues, for some reason.
  • Loading branch information
gravityfox committed Jan 10, 2016
1 parent 8d1b37a commit 704b26b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.event.EventListener;
import org.spongepowered.api.event.block.InteractBlockEvent;
import org.spongepowered.api.item.ItemTypes;
import org.spongepowered.api.item.inventory.ItemStack;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;
Expand All @@ -50,7 +51,7 @@ public void handle(InteractBlockEvent event) throws Exception {
if (player.hasPermission("foxcore.wand.use")) {
if (player.getItemInHand().isPresent()) {
ItemStack item = player.getItemInHand().get();
if (/*item.getItem().equals(ItemTypes.GOLDEN_AXE)*/ item.get(WandData.class).isPresent()) {
if (item.getItem().equals(ItemTypes.GOLDEN_AXE) /*item.get(WandData.class).isPresent()*/) {
Vector3i pos = event.getTargetBlock().getPosition();
List<Vector3i> positions = FCHelper.getPositions(player);
if (event instanceof InteractBlockEvent.Primary) {
Expand Down

0 comments on commit 704b26b

Please sign in to comment.