Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
78f6909
update
Dream-Master Oct 7, 2025
ee6c746
pixels
Ranzuu Oct 7, 2025
32e7bd2
Fixed structurelib display and added hint for uplink hatch in tooltip
cubefury Oct 7, 2025
04a55e5
Cleaned up input/output slot method naming
cubefury Oct 7, 2025
9a52add
Fixed structure hint.
cubefury Oct 7, 2025
9a7af7d
Fix edge-case NPE on load when player attempts to load tradestate for…
cubefury Oct 7, 2025
9207b60
Merge pull request #1 from Ranzuu/edit
cubefury Oct 8, 2025
3fe231b
Merge pull request #2 from GTNewHorizons/structure-changes
cubefury Oct 8, 2025
d7ab8bb
update
Dream-Master Oct 8, 2025
e0646fb
Update zh_CN.lang
Omgise Oct 8, 2025
e1f86c5
Update zh_CN.lang
Omgise Oct 8, 2025
914015c
Merge pull request #6 from Omgise/master
cubefury Oct 8, 2025
8f27d4c
Separate Tile name and gui title
Ranzuu Oct 8, 2025
d286e85
Localize the ME Vending Uplink Hatch Overlay
Ranzuu Oct 8, 2025
3f80365
Now sorts by tradegroup id before writing to file, and does not add i…
cubefury Oct 9, 2025
d15d641
Merge pull request #9 from GTNewHorizons/change-save-format
cubefury Oct 9, 2025
59df166
Merge pull request #8 from Ranzuu/r-texture
cubefury Oct 9, 2025
eb7bb00
Fix edge-case crash when loading trade history for an already-removed…
cubefury Oct 9, 2025
2dfa859
Add list trade display format
cubefury Oct 10, 2025
e9c7a7e
Added alphabetical sort order
cubefury Oct 10, 2025
619d63f
Separated Item and Item Count in list mode.
cubefury Oct 10, 2025
deea723
Merge pull request #10 from GTNewHorizons/qol-toggles
cubefury Oct 10, 2025
8711e46
Separated Item and Item Count in list mode.
cubefury Oct 10, 2025
a79b4d2
Merge pull request #11 from GTNewHorizons/readme-changes
cubefury Oct 10, 2025
15dfef5
Changes:
cubefury Oct 10, 2025
24c5d04
Merge pull request #12 from GTNewHorizons/color-fixes
cubefury Oct 10, 2025
6bda1e8
update
Dream-Master Oct 10, 2025
e2aed96
Shifted text color setting to lang file
cubefury Oct 10, 2025
2dda393
Merge pull request #13 from GTNewHorizons/color-fixes
cubefury Oct 10, 2025
39a01d4
Removed flavortext labels from trades.
cubefury Oct 11, 2025
0c3f7e6
Fixed item display override
cubefury Oct 11, 2025
698ebb4
Regularized save file format by sorting the names of NBT tags within …
cubefury Oct 11, 2025
2bad5a0
Remove commented out dependency
cubefury Oct 11, 2025
02df82b
Fixed a bug where connecting to a server would override a player's lo…
cubefury Oct 11, 2025
35b153f
[V2 Fix] Fixed a bug where the coins display in GUI would not update …
cubefury Oct 11, 2025
e81ffb3
Merge pull request #17 from GTNewHorizons/fix-coins-not-updating
cubefury Oct 12, 2025
19fd3c2
Adapt to MUI2 update
cubefury Oct 12, 2025
b96f487
Fix hoverbackground behavior
cubefury Oct 12, 2025
c224aca
Fix hoverbackground behavior for lists
cubefury Oct 12, 2025
08b4984
Fixed persistent tooltips onMouseEndHover.
cubefury Oct 12, 2025
f2eb136
Fix element positioning
cubefury Oct 12, 2025
9b87a8c
Remove color-correction work around for ListWidget elements
cubefury Oct 12, 2025
8dfe321
[Crashing] Address Review Comments
cubefury Oct 12, 2025
c948122
[Working] Address Review Comments
cubefury Oct 12, 2025
d0a3700
Merge pull request #18 from GTNewHorizons/fix-ui-crash
FrostyFire1 Oct 12, 2025
96c3207
Merge branch 'master' into remove-trade-labels
Dream-Master Oct 12, 2025
00c6d40
Merge pull request #15 from GTNewHorizons/remove-trade-labels
Dream-Master Oct 12, 2025
634b9c5
update
Dream-Master Oct 12, 2025
84a716d
Changes:
cubefury Oct 12, 2025
13f835a
Merge pull request #20 from GTNewHorizons/fix-no-compile
boubou19 Oct 12, 2025
8d8c2b2
Fixed coins not updating in multiplayer.
cubefury Oct 13, 2025
1606b03
Revert event handler changes - out of scope for PR
cubefury Oct 13, 2025
2eb06e9
Merge pull request #21 from GTNewHorizons/fix-currency-sync
Dream-Master Oct 13, 2025
29c4350
update
Dream-Master Oct 13, 2025
6b6a6da
Changes:
cubefury Oct 13, 2025
2407461
Fix NPE from trade item display load
cubefury Oct 13, 2025
5a3e0e0
Merge pull request #22 from GTNewHorizons/fix-sync
FrostyFire1 Oct 13, 2025
af399f8
Fix coins going missing on server start in multiplayer.
cubefury Oct 13, 2025
2d322b1
Fixed backing up of tradestate file during write.
cubefury Oct 13, 2025
9d7aa73
Merge pull request #24 from GTNewHorizons/fix-coins-void
Dream-Master Oct 13, 2025
f560ff8
Fixed bug where coins from MP session would persist into SP worlds. C…
cubefury Oct 14, 2025
77b7e68
Merge pull request #26 from GTNewHorizons/fix-sp-coins
Dream-Master Oct 14, 2025
34896d7
update
Dream-Master Oct 14, 2025
53e020a
Pull CurrencyType out of CurrencyItem class
cubefury Oct 14, 2025
00339a2
Swapped coin amount display to synchandlers
cubefury Oct 15, 2025
8df80c6
Removed homebrewed currency sync
cubefury Oct 15, 2025
88375c5
Fixed a bug where if you had exactly 10, 100, 1k or 10k of some coin,…
cubefury Oct 15, 2025
cba40a9
Address comments + bumped mui to 2.3.3
cubefury Oct 15, 2025
8346911
Merge pull request #28 from GTNewHorizons/refactor-coins
cubefury Oct 15, 2025
9e4d47f
Added support for non-consumable items in a trade.
cubefury Oct 15, 2025
66f4215
update
Dream-Master Oct 16, 2025
b8f2f24
Tidied up extra newlines in tooltips
cubefury Oct 16, 2025
0b08db4
Fix NEI recipe handler underlines
cubefury Oct 16, 2025
1d1ad17
Revert out of scope recipe handler change.
cubefury Oct 17, 2025
ac11406
update
Dream-Master Oct 16, 2025
5593fbb
Fixed recipe underlines in NEI
cubefury Oct 17, 2025
3eb9255
Added NC to corner of non-consumable stacks
cubefury Oct 17, 2025
fa66518
Update GT package to reference new location of MTEMultiBlockBaseGui
cubefury Oct 17, 2025
efc9aec
Address comments
cubefury Oct 17, 2025
7bf7d97
update
Dream-Master Oct 17, 2025
240c55f
Merge pull request #31 from GTNewHorizons/update-gt-packages
Dream-Master Oct 17, 2025
a0ef8b2
Added support for non-consumable items in a trade.
cubefury Oct 15, 2025
b8af728
Tidied up extra newlines in tooltips
cubefury Oct 16, 2025
760207a
Fix NEI recipe handler underlines
cubefury Oct 16, 2025
d9d70d6
Revert out of scope recipe handler change.
cubefury Oct 17, 2025
bde3c89
Merge pull request #29 from GTNewHorizons/support-non-consumables
FrostyFire1 Oct 17, 2025
61ad4b7
Update GT package to reference new location of MTEMultiBlockBaseGui
cubefury Oct 17, 2025
3abb3d4
Address comments
cubefury Oct 17, 2025
87c12bb
update
Dream-Master Oct 17, 2025
8b30f7e
Merge branch 'master' into fix-recipe-display
cubefury Oct 17, 2025
f44cae1
formatted nei display with more rows
cubefury Oct 17, 2025
33eafc7
Fix element positions
cubefury Oct 17, 2025
3664069
update
Dream-Master Oct 17, 2025
f3a46e8
Disable trades and trade UI refresh when machine unforms
cubefury Oct 18, 2025
654a52c
Removed clunky baseMTE reference
cubefury Oct 18, 2025
803d62c
Disabled coin insert/eject when vm is not formed
cubefury Oct 18, 2025
01ed57a
swapped to getActive()
cubefury Oct 18, 2025
b345def
Removed unnecessary null check
cubefury Oct 18, 2025
528796b
missed one
cubefury Oct 18, 2025
e89013b
Merge branch 'master' into fix-recipe-display
cubefury Oct 18, 2025
94e2a3a
reduced max recipes per page
cubefury Oct 18, 2025
e5994ad
Changed UI height
cubefury Oct 18, 2025
eda547c
Merge pull request #33 from GTNewHorizons/fix
cubefury Oct 18, 2025
8c44f0e
Merge branch 'master' into fix-recipe-display
cubefury Oct 18, 2025
ca10f12
Merge pull request #30 from GTNewHorizons/fix-recipe-display
Dream-Master Oct 18, 2025
733d8a4
update
Dream-Master Oct 18, 2025
18ae904
ignore nbt
cubefury Oct 18, 2025
ae4a89b
Ignore NBT for items in ME system
cubefury Oct 19, 2025
adf454b
Removed experimental code and added null check for cached items
cubefury Oct 19, 2025
bf49331
spotless
cubefury Oct 19, 2025
466acf8
Made uplink texture update correctly when powered by ME system
cubefury Oct 20, 2025
f253d28
reduced frequency of active check
cubefury Oct 20, 2025
6e3f2aa
Merge pull request #35 from GTNewHorizons/fix-uplink-textures
cubefury Oct 20, 2025
47c0b86
Merge branch 'master' into ignore-trade-nbt
cubefury Oct 20, 2025
7248eaa
Merge pull request #34 from GTNewHorizons/ignore-trade-nbt
Dream-Master Oct 22, 2025
b9d34b6
update
Dream-Master Oct 22, 2025
c881208
Added coin add, set and reset commands.
cubefury Oct 28, 2025
dcfd79b
Fixed hints for commands
cubefury Oct 28, 2025
90b4e3a
Fixed command arugment position checks.
cubefury Oct 29, 2025
fac3f6d
Fixed coin names
cubefury Nov 4, 2025
2a359ed
Merge pull request #39 from GTNewHorizons/fix-coin-names
cubefury Nov 4, 2025
535976d
update
Dream-Master Nov 4, 2025
3cbc071
fixed NPE when trade database has no displayed item
cubefury Nov 6, 2025
bbedd48
Skip displaying cooldown remaining if trade is disabled anyway
cubefury Nov 6, 2025
1cfdb9f
actually load the trade count from file
cubefury Nov 6, 2025
8c6f775
Merge branch 'master' into add-commands
cubefury Nov 6, 2025
9934b49
Address comments
cubefury Nov 6, 2025
1c13c59
command hint fix
cubefury Nov 6, 2025
fc3db3f
Update readme with commands
cubefury Nov 6, 2025
4564b94
Removed translator class reference from server side.
cubefury Nov 14, 2025
63c5111
spotless
cubefury Nov 14, 2025
ae36d34
Added command feedback.
cubefury Nov 14, 2025
608f50a
Merge pull request #40 from GTNewHorizons/fix-trade-limit
cubefury Nov 15, 2025
bc05ed7
Merge branch 'master' into add-commands
cubefury Nov 15, 2025
595887c
Address Comments
cubefury Nov 16, 2025
7ffe5c4
- Improved command tab completion hint to not populate coin twice.
cubefury Nov 16, 2025
58cff9b
Address comments.
cubefury Nov 16, 2025
e5216c7
Merge pull request #38 from GTNewHorizons/add-commands
cubefury Nov 16, 2025
d0aa702
Fix tile data saving.
cubefury Nov 19, 2025
9b24840
Merge pull request #42 from GTNewHorizons/fix-items-missing
Dream-Master Nov 19, 2025
533ec5c
ego stroking
cubefury Nov 24, 2025
e84725b
Merge pull request #44 from GTNewHorizons/add-author
UltraProdigy Nov 24, 2025
3f3bb39
update deps
cubefury Nov 25, 2025
b7a2b14
change config class name
cubefury Nov 25, 2025
e2369bc
Convert to GTNHLib config format
cubefury Nov 25, 2025
66c49c4
Update config file on the fly when gui settings are changed
cubefury Nov 25, 2025
029abf7
Merge pull request #45 from GTNewHorizons/improve-configs
cubefury Nov 25, 2025
297ab73
Extract display type to separate class
cubefury Dec 13, 2025
48ac09b
Extract sort mode to separate class
cubefury Dec 13, 2025
d19b7e2
Merge pull request #46 from GTNewHorizons/cleanup
UltraProdigy Dec 13, 2025
49e98cc
Add Oredict compat
cubefury Dec 15, 2025
d525004
Fix bug where items accepting oredict would accept any item durability
cubefury Dec 15, 2025
51bc418
Address comments
cubefury Dec 16, 2025
c57b9a9
Merge pull request #47 from GTNewHorizons/oredict-compat-2
UltraProdigy Dec 16, 2025
982fd0c
Add Oredict tooltips
cubefury Dec 17, 2025
b1e1e15
Merge pull request #49 from GTNewHorizons/oredict-tooltip
cubefury Dec 17, 2025
2e80379
Added more slots
cubefury Dec 18, 2025
340a70a
Merge pull request #50 from GTNewHorizons/more-slots
UltraProdigy Dec 18, 2025
988a8ef
swap to getStacks
cubefury Dec 18, 2025
64e3d87
Merge branch 'master' into more-slots
cubefury Dec 18, 2025
009f06a
Merge pull request #51 from GTNewHorizons/more-slots
cubefury Dec 18, 2025
a5c0206
Removed clientside code from serverside oredict check
cubefury Dec 19, 2025
68093b4
Merge pull request #52 from GTNewHorizons/fix-oredict-crash
cubefury Dec 19, 2025
43195b3
Add periodic check for trade restock notifications.
cubefury Dec 20, 2025
e359200
update
Dream-Master Dec 20, 2025
273bb6c
Added notification send and set/reset
cubefury Dec 22, 2025
6a9fca1
Send notifications only when trade is refreshed
cubefury Dec 22, 2025
779ea3e
Add sounds, Fix bug where all items with a trade history would show u…
cubefury Dec 22, 2025
f3c599d
Merge branch 'master' into add-notifications
cubefury Dec 22, 2025
fe7e4db
Address comments
cubefury Dec 23, 2025
2b1c447
Address comments better
cubefury Dec 23, 2025
5aa96f4
fix logic error when changing to inline instanceof
cubefury Dec 23, 2025
7c61daa
Merge pull request #53 from GTNewHorizons/add-notifications
cubefury Dec 23, 2025
b800f9b
Refactored vending command
cubefury Dec 23, 2025
edff72f
Merge pull request #54 from GTNewHorizons/refactor-commands
cubefury Dec 26, 2025
08b8f87
Move player trade satisfied condition tracking into trade manager
cubefury Dec 26, 2025
f6e692f
Swap noconditiontrades to tradedatabase
cubefury Dec 26, 2025
e37233f
Swap tradestate tracking to TradeManager
cubefury Dec 27, 2025
a0e4539
Some comments
cubefury Dec 27, 2025
ec838ad
spotless
cubefury Dec 27, 2025
1f2a198
minor comments
cubefury Dec 27, 2025
78600ff
Fixed requirement matching bug
cubefury Dec 31, 2025
846a5ae
minor formatting
cubefury Dec 31, 2025
7edeed5
Fixed completed quest sync in MP
cubefury Dec 31, 2025
8cbb4fb
update bs+deps+gradle
Dream-Master Jan 1, 2026
9a8e61c
Merge branch 'master' into refactor-trade-manager
Dream-Master Jan 1, 2026
3d36685
Merge pull request #55 from GTNewHorizons/refactor-trade-manager
Dream-Master Jan 6, 2026
98ec804
Fix potential NPE crash from bad trade request with invalid tradegroup.
cubefury Jan 8, 2026
e55a6e2
Merge pull request #56 from GTNewHorizons/npe-fixes
cubefury Jan 8, 2026
ffb2b66
Registry Name Migration for NewHorizonsCoreMod
Nikolay-Sitnikov Jan 10, 2026
417c18a
Merge pull request #57 from GTNewHorizons/nhcoremod-migration
boubou19 Jan 17, 2026
46a87b3
Add hot db reload
cubefury Jan 21, 2026
cde6546
spotless
cubefury Feb 1, 2026
9c95a7e
fix crash when opening UI after reload.
cubefury Feb 1, 2026
e1373dc
Merge branch 'master' into hot-reload
cubefury Feb 1, 2026
ed7ecc5
Fix command behaviour.
cubefury Feb 1, 2026
3099f95
Merge pull request #58 from GTNewHorizons/hot-reload
UltraProdigy Feb 1, 2026
0079034
Update readme (#59)
cubefury Feb 3, 2026
1c0ada3
Add structure error (#61)
cubefury Feb 4, 2026
de8809d
update
Dream-Master Feb 6, 2026
cf4dac1
fix (#62)
Dream-Master Feb 7, 2026
47afd30
adapt to mui2 upstream (#63)
chrombread Feb 8, 2026
aa3633e
Show Structure Incomplete When Structure is Incomplete (#65)
UltraProdigy Feb 11, 2026
5ce5f53
Added trade state reload command (#64)
cubefury Feb 11, 2026
e42ccfa
Check if player is not accessing vending machine before reloading tra…
cubefury Feb 13, 2026
b89d235
Fix item ejecting direction (#67)
cubefury Mar 4, 2026
83c4f3c
Favourites tab (#68)
cubefury Mar 11, 2026
fd831c8
Support all coins for NEI trade preview (#70)
cubefury Mar 13, 2026
36891a8
bump GT to account for https://github.com/GTNewHorizons/GT5-Unofficia…
boubou19 Mar 14, 2026
d6a076c
Impr(Textures): Adapt GT5U OptionalResource (#74)
leagris Mar 14, 2026
b1b1ba1
op & wf (#75)
UltraProdigy Mar 16, 2026
64b4e8d
Show trades which share a cooldown.
cubefury Mar 20, 2026
1b3bddd
update deps
cubefury Mar 20, 2026
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
17 changes: 17 additions & 0 deletions .github/workflows/optimize-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Optimize images

on:
pull_request:
branches: [ master, main, release/** ]
paths:
- "**/*.png"

push:
branches: [ master, main, release/** ]
paths:
- "**/*.png"

jobs:
optimize-images:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
secrets: inherit
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ This mod adds a vending machine, unlocking trades based on questbook data. If yo
### Interface
![img_1.png](img_1.png)

### Command

**Note: All commands require OP to run**.

If your command still refuses to run, ensure your OP permission level in server.properties is set to 4.

|Task| Command |
|--|---------------------------------------------------|
|**Set coin**| `/vending set [player] <coin_type\|all> <amount>` |
|**Add coin**| `/vending add [player] <coin_type\|all> <amount>` |
|**Reset coins**| `/vending reset [player] <coin_type\|all>` |
|**Reload database** | `/vending reload database` |
|**Reload trade state**| `/vending reload tradestate [player]` |

## Current Status

Alpha Testing
Expand All @@ -18,7 +32,7 @@ Alpha Testing
This can be used as a standalone mod with several dependencies. The vending machine block and ME Vending Uplink do not come with default recipes.

### Required Dependencies:
- GT5U
- GT5Unofficial-GTNH (Not compatible with main GT5U branch!)
- ModularUI 2
- NotEnoughItems
- Applied Energistics 2
Expand Down
16 changes: 8 additions & 8 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.77-GTNH:dev")
implementation("com.github.GTNewHorizons:GTNHLib:0.6.39:dev")
compileOnly("com.github.GTNewHorizons:BetterQuesting:3.7.11-GTNH:dev")
implementation("com.github.GTNewHorizons:ModularUI2:2.2.18-1.7.10:dev")
// implementation("com.github.GTNewHorizons:ModularUI2:99.99:dev")
implementation("com.github.GTNewHorizons:StructureLib:1.4.18:dev")
implementation("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.440:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.60-GTNH:dev")
implementation("com.github.GTNewHorizons:GTNHLib:0.9.10:dev")
compileOnly("com.github.GTNewHorizons:BetterQuesting:3.8.26-GTNH:dev")

implementation("com.github.GTNewHorizons:ModularUI2:2.3.39-1.7.10:dev")
implementation("com.github.GTNewHorizons:StructureLib:1.4.28:dev")
implementation("com.github.GTNewHorizons:GT5-Unofficial:5.09.52.375:dev")
}

// deps may transitively add Baubles, so we replace it
Expand All @@ -49,7 +49,7 @@ project.getConfigurations()
final DependencySubstitutions ds = c.getResolutionStrategy()
.getDependencySubstitution()
ds.substitute(ds.module("com.github.GTNewHorizons:Baubles"))
.using(ds.module("com.github.GTNewHorizons:Baubles-Expanded:2.1.9-GTNH"))
.using(ds.module("com.github.GTNewHorizons:Baubles-Expanded:2.2.6-GTNH"))
.withClassifier("dev")
.because("Baubles-Expanded replaces Baubles")
})
43 changes: 39 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,33 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer

# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
# Enables modern Java syntax support. Valid values:
# - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = jabel

# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1

# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8

# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25

# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =

# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
Expand Down Expand Up @@ -87,7 +111,9 @@ usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =

# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
# Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage =

# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
Expand Down Expand Up @@ -163,6 +189,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter.
# customArchiveBaseName =

# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client

# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server

# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
Expand Down Expand Up @@ -192,3 +224,6 @@ curseForgeRelations =
# This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true

# Non-GTNH properties
org.gradle.configuration-cache = true
org.gradle.parallel = true
12 changes: 12 additions & 0 deletions gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/46949723aaa20c7b64d7ecfed7207034/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d6690dfd71c4c91e08577437b5b2beb0/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3cd7045fca9a72cd9bc7d14a385e594c/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/552c7bffe0370c66410a51c55985b511/redirect
toolchainVersion=25
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 2 additions & 5 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ pluginManagement {
}

plugins {
id("com.gtnewhorizons.gtnhsettingsconvention") version("1.0.41")
id("com.gtnewhorizons.gtnhsettingsconvention") version("2.0.19")
}
8 changes: 8 additions & 0 deletions src/main/java/com/cubefury/vendingmachine/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import net.minecraftforge.common.MinecraftForge;

import com.cubefury.vendingmachine.handlers.ClientEventHandler;
import com.cubefury.vendingmachine.handlers.SaveLoadHandler;
import com.cubefury.vendingmachine.integration.nei.NEIConfig;

import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

Expand All @@ -20,6 +23,7 @@ public void preInit(FMLPreInitializationEvent event) {
public void init(FMLInitializationEvent event) {
MinecraftForge.EVENT_BUS.register(new NEIConfig());
super.init(event);
SaveLoadHandler.INSTANCE.clientInit();
}

public boolean isClient() {
Expand All @@ -29,6 +33,10 @@ public boolean isClient() {
@Override
public void registerHandlers() {
super.registerHandlers();
MinecraftForge.EVENT_BUS.register(ClientEventHandler.INSTANCE);
FMLCommonHandler.instance()
.bus()
.register(ClientEventHandler.INSTANCE);
}

}
4 changes: 3 additions & 1 deletion src/main/java/com/cubefury/vendingmachine/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.server.MinecraftServer;
import net.minecraftforge.common.MinecraftForge;

import com.cubefury.vendingmachine.command.CommandVending;
import com.cubefury.vendingmachine.handlers.EventHandler;
import com.cubefury.vendingmachine.handlers.SaveLoadHandler;

Expand All @@ -20,7 +21,6 @@ public class CommonProxy {
// GameRegistry." (Remove if not needed)
public void preInit(FMLPreInitializationEvent event) {
VendingMachine.LOG.info("Loading Vending Machine " + Tags.VERSION);
Config.init(event.getSuggestedConfigurationFile());
}

// load "Do your mod setup. Build whatever data structures you care about. Register recipes." (Remove if not needed)
Expand All @@ -35,6 +35,8 @@ public void serverStarting(FMLServerStartingEvent event) {
ICommandManager command = server.getCommandManager();
ServerCommandManager manager = (ServerCommandManager) command;

manager.registerCommand(new CommandVending());

SaveLoadHandler.INSTANCE.init(server);
}

Expand Down
44 changes: 0 additions & 44 deletions src/main/java/com/cubefury/vendingmachine/Config.java

This file was deleted.

Loading
Loading