Skip to content

Commit

Permalink
Fix ability to configure TileLevelMaintainer using OC (#184)
Browse files Browse the repository at this point in the history
* Fix ability to configure `TileLevelMaintainer` using OC

* Spotless apply for branch fix/tlm-oc-integration for #184 (#185)

Co-authored-by: Andrei Laiff <[email protected]>
Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Laiff and github-actions[bot] authored Dec 26, 2023
1 parent 20ebc18 commit 7dedef2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@

import com.glodblock.github.common.item.ItemFluidDrop;
import com.glodblock.github.common.tile.TileLevelMaintainer;
import com.glodblock.github.inventory.AeItemStackHandler;
import com.glodblock.github.loader.ItemAndBlockHolder;
import com.glodblock.github.util.NameConst;

import appeng.util.item.AEItemStack;
import cpw.mods.fml.common.registry.GameRegistry;
import li.cil.oc.api.driver.EnvironmentProvider;
import li.cil.oc.api.driver.NamedBlock;
Expand Down Expand Up @@ -124,9 +122,7 @@ private void setSlot(int slot, String address, int index) {
if (dbStack == null) {
throw new IllegalArgumentException("Invalid slot");
}
dbStack.stackSize = 1;
((AeItemStackHandler) tileEntity.getInventory()).getAeInventory()
.setStack(slot, AEItemStack.create(dbStack));
tileEntity.requests.updateStack(slot, dbStack);
} else {
throw new IllegalArgumentException("Not a database");
}
Expand Down

0 comments on commit 7dedef2

Please sign in to comment.