fixed various bugs

This commit is contained in:
2024-12-14 14:59:42 +01:00
parent 88b55d4d7c
commit 8bb2d382b9
6 changed files with 33 additions and 7 deletions

View File

@@ -44,9 +44,9 @@ public class PixelBlockHitbox {
double endingZ = MinMaxUtil.getMaxProperty(pixels, pixel -> pixel.relativeLocation().getZ());
Location spawnLocation = absoluteLocation.clone().add(
((startingX+endingX)/2)/pixelsPerBlock,
((startingX+endingX)/2+0.5)/pixelsPerBlock,
(startingY/pixelsPerBlock)-0,
((startingZ+endingZ)/2)/pixelsPerBlock
((startingZ+endingZ)/2+0.5)/pixelsPerBlock
);
float height = (float) (endingY-startingY+1)/pixelsPerBlock;