From e194a6b46c6d380463e5e2fa4ca73b58fc8d572f Mon Sep 17 00:00:00 2001 From: WizardJesse1 Date: Sun, 31 Jan 2016 15:50:20 -0500 Subject: [PATCH] Fixed food eating delays * Removed the equal check due to causing issue's with food delays since when you eat one food it should be on the same tick --- data/plugins/consumables/consumable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/plugins/consumables/consumable.rb b/data/plugins/consumables/consumable.rb index 5f34760c..3562cd67 100644 --- a/data/plugins/consumables/consumable.rb +++ b/data/plugins/consumables/consumable.rb @@ -32,7 +32,7 @@ class ConsumeAction < Action attr_reader :consumable def initialize(player, slot, consumable) - super(0, true, player) + super(2, true, player) @consumable = consumable @slot = slot @executions = 0 @@ -51,7 +51,7 @@ class ConsumeAction < Action end def equals(other) - mob == other.mob && @consumable.id == other.consumable.id + mob == other.mob end end