Skip to content

Commit

Permalink
Merge pull request #69 from Darkere/curiosupport
Browse files Browse the repository at this point in the history
add curio support for wireless crafting grids
  • Loading branch information
raoulvdberge authored Jul 25, 2021
2 parents cac773a + 0838873 commit 8a56487
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Refined Storage Addons Changelog

### 0.7.3
- Added Curio Support (Darkere)

### 0.7.2
- Port to Minecraft 1.16.3 (raoulvdberge)

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ processResources {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.16.3-34.1.0'
compileOnly fg.deobf("com.refinedmods:refinedstorage:1.9.6+80")
runtimeOnly fg.deobf("com.refinedmods:refinedstorage:1.9.6+80")
minecraft 'net.minecraftforge:forge:1.16.5-36.2.0'
compileOnly fg.deobf("com.refinedmods:refinedstorage:1.9.14+187")
runtimeOnly fg.deobf("com.refinedmods:refinedstorage:1.9.14+187")
}

jar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ public void onClientSetup(FMLClientSetupEvent e) {
@SubscribeEvent
public void onKeyInput(InputEvent.KeyInputEvent e) {
if (Minecraft.getInstance().player != null) {
PlayerInventory inv = Minecraft.getInstance().player.inventory;

if (RSAddonsKeyBindings.OPEN_WIRELESS_CRAFTING_GRID.isKeyDown()) {
PlayerEntity player = Minecraft.getInstance().player;

KeyInputListener.findAndOpen(inv, (error) -> player.sendMessage(error, player.getUniqueID()), RSAddonsItems.WIRELESS_CRAFTING_GRID, RSAddonsItems.CREATIVE_WIRELESS_CRAFTING_GRID);
KeyInputListener.findAndOpen(RSAddonsItems.WIRELESS_CRAFTING_GRID, RSAddonsItems.CREATIVE_WIRELESS_CRAFTING_GRID);
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/data/curios/tags/items/curio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"refinedstorageaddons:wireless_crafting_grid",
"refinedstorageaddons:creative_wireless_crafting_grid"
]
}

0 comments on commit 8a56487

Please sign in to comment.