Skip to content

Commit a6b5138

Browse files
committed
fix mekanism custom infusion texture
1 parent 448435f commit a6b5138

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/postInit/mekanism.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mods.mekanism.infusion.removeByType(infusion('carbon'))
1212
// mods.mekanism.infusion.removeByType(infusion('diamond'))
1313
// mods.mekanism.infusion.removeAll()
1414

15-
mods.mekanism.infusion.addType('groovy_example', resource('placeholdername:blocks/example'))
15+
mods.mekanism.infusion.addType('groovy_example', resource('placeholdername:blocks/mekanism_infusion_texture'))
1616
mods.mekanism.infusion.add(infusion('diamond'), 100, item('minecraft:clay'))
1717
mods.mekanism.infusion.add(infusion('carbon'), 100, item('minecraft:gold_ingot'))
1818
mods.mekanism.infusion.add('groovy_example', 10, item('minecraft:ice'))

examples/preInit/mekanism.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import net.minecraftforge.client.event.TextureStitchEvent
55
if (!isLoaded('mekanism')) return
66
println 'mod \'mekanism\' detected, running script'
77

8-
eventManager.listen { TextureStitchEvent.Pre event ->
8+
eventManager.listen(TextureStitchEvent.Pre) { event ->
99
event.getMap().registerSprite(resource('placeholdername:blocks/mekanism_infusion_texture'))
1010
}

src/main/java/com/cleanroommc/groovyscript/compat/mods/mekanism/Infusion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void onReload() {
6262
objectStorage.removeScripted().forEach(pair -> InfuseRegistry.getObjectMap().remove(pair.getKey()));
6363
}
6464

65-
@MethodDescription(example = @Example("'groovy_example', resource('placeholdername:blocks/example')"), type = MethodDescription.Type.ADDITION, priority = 500)
65+
@MethodDescription(example = @Example("'groovy_example', resource('placeholdername:blocks/mekanism_infusion_texture')"), type = MethodDescription.Type.ADDITION, priority = 500)
6666
public void addType(String name, ResourceLocation resource) {
6767
InfuseType infuse = new InfuseType(name.toUpperCase(Locale.ROOT), resource);
6868
infuse.unlocalizedName = name.toLowerCase(Locale.ROOT);

0 commit comments

Comments
 (0)