Logic sensor (#10795)
* Add `selectedBlock` logic sensor * Add `buildX`/`buildY`/`building` logic sensors * Change `building` from boolean to the building * `breaking` * Make `breaking`/`building` more consistent * Allow blocks/content to be null * Change `selectedBlock` from air to null * Change `selectedBlock` from air to null * Make `selectedBlock` SyncLocal * Add `selectedRotation`
This commit is contained in:
@@ -944,6 +944,9 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
block = null;
|
||||
}
|
||||
|
||||
player.selectedBlock = block;
|
||||
player.selectedRotation = rotation;
|
||||
|
||||
wasShooting = player.shooting;
|
||||
|
||||
//only reset the controlled type and control a unit after the timer runs out
|
||||
|
||||
Reference in New Issue
Block a user