Fix flint and steel

This commit is contained in:
Sam 2017-02-26 17:16:04 +00:00
parent 275cadda9d
commit d4bdc3e5d1

View File

@ -78,7 +78,6 @@ public class WorldListeners implements Listener
@EventHandler(priority = EventPriority.LOWEST)
public void blockPlace(BlockPlaceEvent event)
{
if (event.getBlockPlaced().getType() != Material.CAKE_BLOCK && shouldBlock(event.getPlayer()))
{
event.setCancelled(true);
}
@ -185,19 +184,16 @@ public class WorldListeners implements Listener
{
Player player = (Player) event.getEntity();
//DebugModule.getInstance().d(player.getName() + " hunger " + player.getFoodLevel() + " -> " + event.getFoodLevel());
// Some witchcraft from the arcade, seems to make hunger not ridiculous.
player.setSaturation(3.8F);
}
@EventHandler
@EventHandler(priority = EventPriority.LOWEST)
public void weather(WeatherChangeEvent event)
{
if (event.toWeatherState())
{
//DebugModule.getInstance().d("Cancelling a weather change");
event.setCancelled(true);
event.getWorld().setStorm(false);
}
}