From f0679c4f61dbd1fc195b1e86232c074b1725d799 Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Sun, 22 Jul 2012 19:15:00 -0400 Subject: [PATCH] Fixed a few depriciation issues --- appinfo.properties | 6 +++--- buildnumber.properties | 4 ++-- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 2 +- src/me/StevenLawson/TotalFreedomMod/TFM_UserInfo.java | 2 +- src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/appinfo.properties b/appinfo.properties index 1860a41..e7f0074 100644 --- a/appinfo.properties +++ b/appinfo.properties @@ -1,5 +1,5 @@ -#Sun, 22 Jul 2012 12:53:52 -0400 +#Sun, 22 Jul 2012 15:29:37 -0400 program.VERSION=2.5 -program.BUILDNUM=62 -program.BUILDDATE=07/22/2012 12\:53 PM +program.BUILDNUM=68 +program.BUILDDATE=07/22/2012 03\:29 PM diff --git a/buildnumber.properties b/buildnumber.properties index 911db1a..f130e8b 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Sun Jul 22 12:53:52 EDT 2012 -build.number=63 +#Sun Jul 22 15:29:37 EDT 2012 +build.number=69 diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index 41950e7..a4b484a 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -73,7 +73,7 @@ public class TFM_PlayerListener implements Listener Location player_pos = player.getLocation(); Vector direction = player_pos.getDirection().normalize(); - LivingEntity rezzed_mob = player.getWorld().spawnCreature(player_pos.add(direction.multiply(2.0)), playerdata.mobThrowerCreature()); + LivingEntity rezzed_mob = (LivingEntity)player.getWorld().spawnEntity(player_pos.add(direction.multiply(2.0)), playerdata.mobThrowerCreature()); rezzed_mob.setVelocity(direction.multiply(playerdata.mobThrowerSpeed())); playerdata.enqueueMob(rezzed_mob); diff --git a/src/me/StevenLawson/TotalFreedomMod/TFM_UserInfo.java b/src/me/StevenLawson/TotalFreedomMod/TFM_UserInfo.java index 4d5df07..a4a980e 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TFM_UserInfo.java +++ b/src/me/StevenLawson/TotalFreedomMod/TFM_UserInfo.java @@ -266,7 +266,7 @@ public class TFM_UserInfo LivingEntity oldmob = mob_thrower_queue.remove(0); if (oldmob != null) { - oldmob.damage(20); + oldmob.damage(500); } } } diff --git a/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java b/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java index 7467a29..caf9393 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java +++ b/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java @@ -251,9 +251,9 @@ public class TotalFreedomMod extends JavaPlugin props.load(in); in.close(); - pluginVersion = props.getProperty("program.VERSION"); - buildNumber = props.getProperty("program.BUILDNUM"); - buildDate = props.getProperty("program.BUILDDATE"); + TotalFreedomMod.pluginVersion = props.getProperty("program.VERSION"); + TotalFreedomMod.buildNumber = props.getProperty("program.BUILDNUM"); + TotalFreedomMod.buildDate = props.getProperty("program.BUILDDATE"); } catch (Exception ex) {