[MC-11814] Code flaw in the World class Created: 14/Mar/13  Updated: 27/Feb/14  Resolved: 27/Feb/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.7.2
Fix Version/s: None

Type: Bug
Reporter: Hesham A. Meneisi Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: code, spawn, world
Environment:

Windows


Confirmation Status: Unconfirmed

 Description   

In the 'World' class the getTopSolidOrLiquidBlock function returns the top solid block only and ignores liquid blocks. For example, the player could spawn under water or lava.

Currently, the condition for a valid block is:
(blockid != 0 && blockMaterial.blocksMovement() && blockMaterial != Material.leaves)

blocksMovement() does not apply to liquids.

The 'Material' class already has functions called isLiquid() and isSolid()

Edit: It also doesn't return the coordinates of the found block, it augments the Y axis by 1 first.



 Comments   
Comment by [Mod] Ezekiel (ezfe) [ 27/Feb/14 ]

This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. If you are still experiencing this issue, we can reopen it at your request.
Please review the guidelines before reporting issues.

Comment by [Mod] Ezekiel (ezfe) [ 11/Jan/14 ]

Is this still a concern in the latest Minecraft version 14w02c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Generated at Sun Jan 12 12:28:52 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.