Skip to content

Misplaced blocks #8

Description

@anddero

Blocks placed at certain coordinates appear in the wrong place.

For example, all the blocks placed at z=-512 or x=-512 will actually appear at z=-2048 or x=-2048, respectfully.
Tested with J2Blocks v1.1 and Minecraft 1.12.2.

Example to reproduce:

val layers = DefaultLayers()
layers.setLayers(0, 1, Material.BEDROCK)
layers.setLayers(2, 5, Material.GRASS)
val generator = FlatGenerator(layers)
val level = Level("ConsistencyTest", generator)
level.gameType = GameType.CREATIVE
level.setSpawnPoint(-512, 11, -512)
level.mapFeatures = false

val world = World(level, layers)

for (x in -2000..2000) {
    for (z in -2000 .. 2000) {
        for (y in 5..10) {
            world.setBlock(x, y, z, StoneBlock.STONE)
        }
    }
}

world.save()

2022-09-25_14 00 39
2022-09-25_14 00 56
2022-09-25_14 04 25

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions