Skip to content

Block centering issue #27

@SkytAsul

Description

@SkytAsul
double offsetX = 0.5d;
double offsetZ = 0.5d;

Block block = Bukkit.getWorld("world").getBlockAt(100, 100, 100);
Location end = block.getLocation().add(offsetX, 400d, offsetZ);
Location start = block.getLocation().add(offsetX, 0.5d, offsetZ);
Laser laser = new Laser.GuardianLaser(start, end, 1000, 100);

On 1.18.2 with GuardianBeam 2.3.6, the laser was centered on the block. On 1.21.1 with GuardianBeam 2.4.0, the centering no longer works.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions