Skip to content

Commit

Permalink
Merge pull request #563 from refinedmods/fix/GH-551/rm-trinkets
Browse files Browse the repository at this point in the history
chore: move Trinkets integration to addon mod
  • Loading branch information
raoulvdberge authored Jun 16, 2024
2 parents 21505e0 + 91a741e commit bfec892
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 168 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Removed

- The Trinkets integration has been removed and will be moved to an addon mod.

## [2.0.0-milestone.3.11] - 2024-06-16

### Removed
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
noIndiumVersion=1.1.0+1.20.4
trinketsVersion=3.8.0
cardinalComponentsVersion=5.4.0
# Gradle
org.gradle.jvmargs=-Xmx1G
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected final void initializePlatformApi() {
registerNetworkComponents();
registerWirelessTransmitterRangeModifiers();
registerPermissions();
registerSlotReferenceProviders();
registerSlotReferenceProvider();
}

private void registerStorageTypes() {
Expand Down Expand Up @@ -787,7 +787,7 @@ protected final void registerRecipeSerializers(final RegistryCallback<RecipeSeri
);
}

protected void registerSlotReferenceProviders() {
protected final void registerSlotReferenceProvider() {
PlatformApi.INSTANCE.getSlotReferenceFactoryRegistry().register(
createIdentifier("inventory"),
InventorySlotReferenceFactory.INSTANCE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@
"key.refinedstorage2.clear_crafting_grid_matrix_to_inventory": "Clear Crafting Grid matrix to inventory",
"key.refinedstorage2.open_wireless_grid": "Open Wireless Grid",
"refinedstorage2.subtitle.wrench": "Wrench used",
"trinkets.slot.refinedstorage2.wireless": "Refined Storage 2",
"permission.refinedstorage2.insert": "Insert",
"permission.refinedstorage2.insert.description": "Whether the player can insert resources in a network.",
"permission.refinedstorage2.extract": "Extract",
Expand Down
9 changes: 0 additions & 9 deletions refinedstorage2-platform-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ repositories {
name = 'NoIndium'
url = 'https://maven.cafeteria.dev/releases/'
}
maven {
name = "Trinkets"
url = 'https://maven.ladysnake.org/releases'
}
}

fabricProject("refinedstorage2", project(":refinedstorage2-platform-common"), apis, compileApis)
Expand All @@ -36,11 +32,6 @@ dependencies {
include "me.luligabi:NoIndium:${noIndiumVersion}"

modApi libs.modmenu

// https://www.curseforge.com/minecraft/mc-mods/trinkets/files
modApi "dev.emi:trinkets:${trinketsVersion}"
modApi "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${cardinalComponentsVersion}"
modApi "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${cardinalComponentsVersion}"
}

enablePublishing()
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
import com.refinedmods.refinedstorage2.platform.fabric.storage.externalstorage.FabricStoragePlatformExternalStorageProviderFactory;
import com.refinedmods.refinedstorage2.platform.fabric.storage.portablegrid.FabricPortableGridBlockEntity;
import com.refinedmods.refinedstorage2.platform.fabric.support.energy.EnergyStorageAdapter;
import com.refinedmods.refinedstorage2.platform.fabric.support.network.bounditem.TrinketsSlotReferenceFactory;
import com.refinedmods.refinedstorage2.platform.fabric.support.network.bounditem.TrinketsSlotReferenceProvider;
import com.refinedmods.refinedstorage2.platform.fabric.support.resource.ResourceContainerFluidStorageAdapter;
import com.refinedmods.refinedstorage2.platform.fabric.support.resource.VariantUtil;

Expand Down Expand Up @@ -432,18 +430,6 @@ private void registerTickHandler() {
ServerTickEvents.START_SERVER_TICK.register(server -> ServerEventQueue.runQueuedActions());
}

@Override
protected void registerSlotReferenceProviders() {
super.registerSlotReferenceProviders();
TrinketsSlotReferenceProvider.create().ifPresent(slotReferenceProvider -> {
PlatformApi.INSTANCE.getSlotReferenceFactoryRegistry().register(
createIdentifier("trinkets"),
TrinketsSlotReferenceFactory.INSTANCE
);
PlatformApi.INSTANCE.addSlotReferenceProvider(slotReferenceProvider);
});
}

private void registerWrenchingEvent() {
UseBlockCallback.EVENT.register((player, level, hand, hitResult) -> {
final BlockState state = level.getBlockState(hitResult.getBlockPos());
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit bfec892

Please sign in to comment.