Skip to content

Commit f1e639c

Browse files
committed
Add more mod compat
Compat for etched, immersive paintings, sleep tight, and another furniture
1 parent c894499 commit f1e639c

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package dev.ryanhcode.sable.mixin.compatibility.etched;
2+
3+
import dev.ryanhcode.sable.sound.MovingSoundInstanceDelegate;
4+
import dev.ryanhcode.sable.sound.SoundInstanceDelegated;
5+
import org.spongepowered.asm.mixin.Mixin;
6+
import org.spongepowered.asm.mixin.Unique;
7+
8+
@Mixin(targets = "gg.moonflower.etched.api.sound.StopListeningSound")
9+
public class StopListeningSoundMixin implements SoundInstanceDelegated {
10+
11+
@Unique
12+
private MovingSoundInstanceDelegate sable$delegate;
13+
14+
@Override
15+
public MovingSoundInstanceDelegate getDelegate() {
16+
return this.sable$delegate;
17+
}
18+
19+
@Override
20+
public void setDelegate(final MovingSoundInstanceDelegate delegate) {
21+
this.sable$delegate = delegate;
22+
}
23+
}

‎common/src/main/resources/data/sable/tags/entity_type/retain_in_sub_level.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
{ "id": "botania:corporea_burst", "required": false },
1111
{ "id": "botania:spark", "required": false },
1212
{ "id": "exposure:camera_stand", "required": false },
13+
{ "id": "another_furniture:seat", "required": false },
14+
{ "id": "sleep_tight:bed_entity", "required": false },
1315
"minecraft:snow_golem",
1416
"minecraft:armor_stand",
1517
"minecraft:minecart",

‎common/src/main/resources/data/sable/tags/entity_type/wall_entities.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
{ "id": "create:crafting_blueprint", "required": false },
88
{ "id": "exposure:glass_photograph_frame", "required": false },
99
{ "id": "exposure:photograph_frame", "required": false },
10-
{ "id": "labels:label", "required": false }
10+
{ "id": "labels:label", "required": false },
11+
{ "id": "immersive_paintings:painting", "required": false },
12+
{ "id": "immersive_paintings:glow_painting", "required": false },
13+
{ "id": "immersive_paintings:graffiti", "required": false },
14+
{ "id": "immersive_paintings:glow_graffiti", "required": false }
1115
]
1216
}

‎common/src/main/resources/sable.mixins.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"command.DataCommandsMixin",
107107
"command.ExecuteCommandMixin",
108108
"compatibility.computercraft.WirelessNetworkMixin",
109+
"compatibility.etched.StopListeningSoundMixin",
109110
"compatibility.exposure.CameraPosesMixin",
110111
"compatibility.exposure.CameraStandEntityMixin",
111112
"compatibility.jade.BlockAccessorImplMixin",

0 commit comments

Comments
 (0)