Fix for 1.8.8 due to a reference to the hand being used which was not needed

This commit is contained in:
Alastair 2017-07-15 11:22:08 +01:00
parent e4f38f50a0
commit 52712ff015
4 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
main: com.sekwah.advancedportals.AdvancedPortalsPlugin
name: AdvancedPortals
version: 0.0.34
version: 0.0.35
author: sekwah41
description: An advanced portals plugin for bukkit.
commands:

View File

@ -16,7 +16,7 @@
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<version>0.0.34-snapshot</version>
<version>0.0.35-snapshot</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>

View File

@ -223,7 +223,6 @@ public class Listeners implements Listener {
// Returns the event so no more code is executed(stops unnecessary code being executed)
} else if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
System.out.println(event.getHand());
Location blockloc = event.getClickedBlock().getLocation();
player.setMetadata("Pos2X", new FixedMetadataValue(plugin, blockloc.getBlockX()));
player.setMetadata("Pos2Y", new FixedMetadataValue(plugin, blockloc.getBlockY()));

View File

@ -73,7 +73,7 @@ public class Portal {
try {
Integer.parseInt(BlockID);
System.out.println("Block names must be given not IDs");
plugin.getLogger().info("Block names must be given not IDs");
} catch (NumberFormatException e) {
blockType = Material.getMaterial(BlockID);
}