Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ repositories {
includeGroup("me.shedaniel.cloth")
}
}
maven {
url = uri("https://maven.pkg.github.com/refinedmods/refinedstorage")
credentials {
username = "anything"
password = "\u0067hp_oGjcDFCn8jeTzIj4Ke9pLoEVtpnZMP4VQgaX"
}
content {
includeModule("com.refinedmods", "refinedstorage")
}
}
maven {
name = 'Kotlin for Forge'
url = 'https://thedarkcolour.github.io/KotlinForForge/'
Expand Down Expand Up @@ -294,9 +284,8 @@ dependencies {
runtimeOnly fg.deobf("top.theillusivec4.curios:curios-forge:${curios_version}")

// Refined Storage
implementation fg.deobf("com.refinedmods:refinedstorage:${refinedstorage_version}") {
transitive false
}
compileOnly fg.deobf("curse.maven:refined-storage-243076:4861827")
runtimeOnly fg.deobf("curse.maven:refined-storage-243076:4861827")

// AE2 Things
compileOnly fg.deobf("curse.maven:ae2things-609977:${ae2things_version}-sources")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package de.srendi.advancedperipherals.common.util;

import dan200.computercraft.api.detail.VanillaDetailRegistries;
import dan200.computercraft.api.lua.LuaException;
import dan200.computercraft.shared.util.NBTUtil;
import de.srendi.advancedperipherals.common.addons.computercraft.peripheral.InventoryManagerPeripheral;
Expand Down Expand Up @@ -102,11 +103,10 @@ public static Object posToObject(BlockPos pos) {

public static Map<String, Object> stackToObject(@NotNull ItemStack stack) {
if (stack.isEmpty()) return new HashMap<>();
Map<String, Object> map = itemToObject(stack.getItem());
Map<String, Object> map = new HashMap<>(VanillaDetailRegistries.ITEM_STACK.getDetails(stack));
CompoundTag nbt = stack.copy().getOrCreateTag();
map.put("count", stack.getCount());
map.put("displayName", stack.getDisplayName().getString());
map.put("maxStackSize", stack.getMaxStackSize());
map.put("nbtHash", map.get("nbt"));
map.put("nbt", NBTUtil.toLua(nbt));
map.put("fingerprint", ItemUtil.getFingerprint(stack));
return map;
Expand Down
Loading