Skip to content

Commit

Permalink
Enable 1.6.4 stuff again
Browse files Browse the repository at this point in the history
  • Loading branch information
Di3mex committed May 25, 2014
1 parent 955af4f commit 509705d
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 236 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<project.mainclass>com.extrahardmode.ExtraHardMode</project.mainclass>
<!--Use a profile to overwrite this-->
<outputdir>${project.build.outputDirectory}</outputdir>
<mc-version>1.5.2</mc-version>
<mc-version>1.6.4</mc-version>
<bukkit-ver>R1.0</bukkit-ver>
<testDir>${basedir}/src/test/</testDir>
<srcDir>${basedir}/src/main/java/</srcDir>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/extrahardmode/features/Players.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void onPlayerRespawn(PlayerRespawnEvent respawnEvent)
if (respawnFood < 20 && respawnHealthPercentage > 0 && respawnHealthPercentage < 100)
{
//TODO HIGH EhmPlayerRespawnEvent
SetPlayerHealthAndFoodTask task = new SetPlayerHealthAndFoodTask(player, player.getMaxHealth() * respawnHealthPercentage / 100, respawnFood);
SetPlayerHealthAndFoodTask task = new SetPlayerHealthAndFoodTask(player, (int) player.getMaxHealth() * respawnHealthPercentage / 100, respawnFood);
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, task, 10L); // half-second delay
}
// FEATURE: players can't swim when they're carrying a lot of weight, reset the cached value
Expand Down
Loading

0 comments on commit 509705d

Please sign in to comment.