resolved comments

This commit is contained in:
Pfauenauge 2020-04-12 21:45:01 +02:00
parent 9ff816f006
commit 25a9d5bf2f
3 changed files with 4 additions and 4 deletions

View File

@ -45,8 +45,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a silhouette for players when they are occluded
- Added transparency to the player when zooming in
- Made armor and hotbar slots actually function
- Added dragging and right-click to use functionality to inventory, armor, & hotbar slotskillbars
- Added capes, lanterns, and more armor items
- Added dragging and right-click to use functionality to inventory, armor & hotbar slots
- Added capes, lanterns, tabards, rings, helmets & necklaces as equippable armor
### Changed

View File

@ -31,7 +31,7 @@ impl State {
}
}
/// Returns true is the button was just pressed
/// Returns true if the button was just pressed
pub fn process_input(&mut self, slot: Slot, state: bool) -> bool {
let slot = slot as usize;
let just_pressed = !self.inputs[slot] && state;