Removed some todo's
This commit is contained in:
parent
408056f9af
commit
e1e238de3e
|
@ -96,7 +96,7 @@ public class CompactingDrawerBlock extends RotatableBlock<CompactingDrawerTile>
|
|||
|
||||
private static List<VoxelShape> getShapes(BlockState state, BlockGetter source, BlockPos pos){
|
||||
List<VoxelShape> boxes = new ArrayList<>();
|
||||
CACHED_SHAPES.get(state.getValue(RotatableBlock.FACING_HORIZONTAL)).forEach(boxes::add); //TODO
|
||||
CACHED_SHAPES.get(state.getValue(RotatableBlock.FACING_HORIZONTAL)).forEach(boxes::add);
|
||||
VoxelShape total = Shapes.block();
|
||||
boxes.add(total);
|
||||
return boxes;
|
||||
|
@ -134,7 +134,7 @@ public class CompactingDrawerBlock extends RotatableBlock<CompactingDrawerTile>
|
|||
VoxelShape hit = RayTraceUtils.rayTraceVoxelShape((BlockHitResult) result, worldIn, player, 32, 0);
|
||||
if (hit != null) {
|
||||
if (hit.equals(Shapes.block())) return -1;
|
||||
List<VoxelShape> shapes = new ArrayList<>(CACHED_SHAPES.get(state.getValue(RotatableBlock.FACING_HORIZONTAL))); //TODO
|
||||
List<VoxelShape> shapes = new ArrayList<>(CACHED_SHAPES.get(state.getValue(RotatableBlock.FACING_HORIZONTAL)));
|
||||
for (int i = 0; i < shapes.size(); i++) {
|
||||
if (Shapes.joinIsNotEmpty(shapes.get(i), hit, BooleanOp.AND)) {
|
||||
return i;
|
||||
|
|
|
@ -25,8 +25,6 @@ import net.minecraft.world.item.ItemStack;
|
|||
|
||||
public class DrawerRenderer implements BlockEntityRenderer<DrawerTile> {
|
||||
|
||||
//TODO Fix rotation so it shows the front
|
||||
|
||||
private static final Matrix3f FAKE_NORMALS;
|
||||
|
||||
static {
|
||||
|
|
|
@ -71,7 +71,7 @@ public abstract class BigInventoryHandler implements IItemHandler, INBTSerializa
|
|||
ItemStack out = bigStack.getStack().copy();
|
||||
int newAmount = bigStack.getAmount();
|
||||
if (!simulate) {
|
||||
if (!isLocked()) bigStack.setStack(ItemStack.EMPTY); //TODO Dont change if locked
|
||||
if (!isLocked()) bigStack.setStack(ItemStack.EMPTY);
|
||||
bigStack.setAmount(0);
|
||||
onChange();
|
||||
}
|
||||
|
|
|
@ -92,7 +92,6 @@ public abstract class CompactingInventoryHandler implements IItemHandler, INBTSe
|
|||
ItemStack out = bigStack.getResult().copy();
|
||||
int newAmount = (int) Math.floor(this.amount / bigStack.getNeeded());
|
||||
if (!simulate) {
|
||||
//TODO Dont change if locked
|
||||
this.amount -= (newAmount * bigStack.getNeeded());
|
||||
if (this.amount == 0) reset();
|
||||
onChange();
|
||||
|
|
Loading…
Reference in New Issue
Block a user