Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Fixed fallingsand bug #2770

Closed

Conversation

MinecrafterJPN
Copy link
Contributor

Fixed bug

  • A chest will break when sand fall on the chest.

@PEMapModder
Copy link
Collaborator

Maybe using (int) is better than using floor().

@falkirks
Copy link
Contributor

There is also a round method in Vector3.

@PEMapModder
Copy link
Collaborator

@falkirks

X => floor
Y => round
Z => floor

G G G
   X
G G G

G G G

Suppose bottom left corner is x.0,z.0, X would be placed outside if we use round().

For the Y, it is in case the block fell a bit more than the ground, then it would get sucked into the ground. Assuming that the block won't fall more than 0.5 block in a tick, rounding Y is more suitable.

@MinecrafterJPN
Copy link
Contributor Author

@PEMapModder Thank you

@shoghicp shoghicp closed this in b4f62bf Mar 17, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants