Fixed a few depriciation issues

This commit is contained in:
Steven Lawson 2012-07-22 19:15:00 -04:00
parent 5dd36a9f26
commit f0679c4f61
5 changed files with 10 additions and 10 deletions

View file

@ -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.VERSION=2.5
program.BUILDNUM=62 program.BUILDNUM=68
program.BUILDDATE=07/22/2012 12\:53 PM program.BUILDDATE=07/22/2012 03\:29 PM

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Sun Jul 22 12:53:52 EDT 2012 #Sun Jul 22 15:29:37 EDT 2012
build.number=63 build.number=69

View file

@ -73,7 +73,7 @@ public class TFM_PlayerListener implements Listener
Location player_pos = player.getLocation(); Location player_pos = player.getLocation();
Vector direction = player_pos.getDirection().normalize(); 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())); rezzed_mob.setVelocity(direction.multiply(playerdata.mobThrowerSpeed()));
playerdata.enqueueMob(rezzed_mob); playerdata.enqueueMob(rezzed_mob);

View file

@ -266,7 +266,7 @@ public class TFM_UserInfo
LivingEntity oldmob = mob_thrower_queue.remove(0); LivingEntity oldmob = mob_thrower_queue.remove(0);
if (oldmob != null) if (oldmob != null)
{ {
oldmob.damage(20); oldmob.damage(500);
} }
} }
} }

View file

@ -251,9 +251,9 @@ public class TotalFreedomMod extends JavaPlugin
props.load(in); props.load(in);
in.close(); in.close();
pluginVersion = props.getProperty("program.VERSION"); TotalFreedomMod.pluginVersion = props.getProperty("program.VERSION");
buildNumber = props.getProperty("program.BUILDNUM"); TotalFreedomMod.buildNumber = props.getProperty("program.BUILDNUM");
buildDate = props.getProperty("program.BUILDDATE"); TotalFreedomMod.buildDate = props.getProperty("program.BUILDDATE");
} }
catch (Exception ex) catch (Exception ex)
{ {