You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that when the /hunger command is used with two arguments, the second argument is treated as both the player and the value. This causes the command to break if used with two arguments, effectively preventing it from being used this way. The wiki lists the command syntax to be /hunger [player] <value>, but /hunger <value> works and sets the hunger value for the executor.
It appears that when the
/hunger
command is used with two arguments, the second argument is treated as both the player and the value. This causes the command to break if used with two arguments, effectively preventing it from being used this way. The wiki lists the command syntax to be/hunger [player] <value>
, but/hunger <value>
works and sets the hunger value for the executor.This behavior is caused by the following code:
AppleCore/java/squeek/applecore/commands/CommandHunger.java
Lines 43 to 45 in 2dbabf1
The fix is as simple as changing the first
args[1]
on line 43 of the above code toargs[0]
.The text was updated successfully, but these errors were encountered: