Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

Implement Keys#IS_ATTACHED for ladders

Open Lignium opened this issue 3 years ago • 2 comments

Ladder blocks always is attached to other blocks.

Lignium avatar Jul 30 '22 04:07 Lignium

Should this not check if it actually is attached? e.g. with (LadderBlock#canSurvive) Ladders can at least temporarily not be attached to anything.

Faithcaio avatar Aug 06 '22 23:08 Faithcaio

@Faithcaio The implementation is similar to other blocks, such as a sign, banner or a torch, and I agree with this. This data is not tied to context and not tied to a world. In the correct world, the ladder will never hang in the air, because it will fall. Thus, data can be obtained outside the world, for example, by working with its own virtual buffer, and the data can be used to partially correct the block states in this buffer. This is as an example of my use case.

Lignium avatar Aug 07 '22 00:08 Lignium