Skip to content

Conversation

@Tonguechaude
Copy link
Contributor

Just allow player to swim ! 💦 (didn't find pool emoji sry)

image image

Copy link
Collaborator

@ReCore-sys ReCore-sys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly fine, just some OOP nitpicks


/// Check if a player is in water by testing at eye level
fn is_player_in_water(state: &ferrumc_state::GlobalState, pos: &Position) -> bool {
let eye_pos = IVec3::new(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be cleaner to put it all in a regular Vec3, then floor that and convert to IVec3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants