mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-12-25 02:17:45 +01:00
Fix for 1.8.8 due to a reference to the hand being used which was not needed
This commit is contained in:
parent
e4f38f50a0
commit
52712ff015
@ -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:
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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()));
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user