Skip to content

Commit

Permalink
Respawning when health is zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakin committed Oct 23, 2011
1 parent 14516e7 commit d03c1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mc/client.rb
Expand Up @@ -224,7 +224,7 @@ def on_update_health(packet)
self.food = packet.food
self.food_saturation = packet.food_saturation

if health < 0
if health <= 0
send_packet(MC::RespawnRequest.new)
end
end
Expand Down

0 comments on commit d03c1ea

Please sign in to comment.