Flaps no longer use old origin pos behavior
This commit is contained in:
parent
c3f87ec347
commit
89c34262d0
3 changed files with 2 additions and 10 deletions
|
@ -43,14 +43,6 @@ public class FlapData extends InstanceData implements IFlatLight<FlapData> {
|
|||
return setPosition(pos.x(), pos.y(), pos.z());
|
||||
}
|
||||
|
||||
public FlapData setPosition(int x, int y, int z) {
|
||||
Vector3i origin = owner.originCoordinate.get();
|
||||
|
||||
return setPosition((float) (x - origin.getX()),
|
||||
(float) (y - origin.getY()),
|
||||
(float) (z - origin.getZ()));
|
||||
}
|
||||
|
||||
public FlapData setPosition(float x, float y, float z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
|
|
@ -50,7 +50,7 @@ public class BeltTunnelInstance extends TileEntityInstance<BeltTunnelTileEntity>
|
|||
|
||||
FlapData key = model.createInstance();
|
||||
|
||||
key.setPosition(pos)
|
||||
key.setPosition(getInstancePosition())
|
||||
.setSegmentOffset(segmentOffset, 0, 0)
|
||||
.setBlockLight(blockLight)
|
||||
.setSkyLight(skyLight)
|
||||
|
|
|
@ -46,7 +46,7 @@ public class FunnelInstance extends TileEntityInstance<FunnelTileEntity> impleme
|
|||
|
||||
FlapData key = model.createInstance();
|
||||
|
||||
key.setPosition(pos)
|
||||
key.setPosition(getInstancePosition())
|
||||
.setSegmentOffset(segmentOffset, 0, -tile.getFlapOffset())
|
||||
.setBlockLight(blockLight)
|
||||
.setSkyLight(skyLight)
|
||||
|
|
Loading…
Reference in a new issue