mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
Fix dispense location to be actually where the opening of the dispenser is
This commit is contained in:
parent
c572b48bbe
commit
2e938c11bd
1 changed files with 6 additions and 6 deletions
|
@ -3,14 +3,14 @@ package com.simibubi.create.content.contraptions.components.actors.dispenser;
|
||||||
import net.minecraft.dispenser.IPosition;
|
import net.minecraft.dispenser.IPosition;
|
||||||
|
|
||||||
public class SimplePos implements IPosition {
|
public class SimplePos implements IPosition {
|
||||||
private final int x;
|
private final double x;
|
||||||
private final int y;
|
private final double y;
|
||||||
private final int z;
|
private final double z;
|
||||||
|
|
||||||
public SimplePos(double x, double y, double z) {
|
public SimplePos(double x, double y, double z) {
|
||||||
this.x = (int) Math.round(x);
|
this.x = x;
|
||||||
this.y = (int) Math.round(y);
|
this.y = y;
|
||||||
this.z = (int) Math.round(z);
|
this.z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue