Skip to content

Commit

Permalink
fix 1 java issue and make groovyscript compileonly
Browse files Browse the repository at this point in the history
  • Loading branch information
yor42 committed Dec 19, 2023
1 parent 99db0e8 commit 46107bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ repositories {
name 'Cleanroom'
url 'https://maven.cleanroommc.com'
}

maven {
name 'Mixin'
url 'https://repo.spongepowered.org/repository/maven-public/'
}
ivy {
name 'Red Studio GitHub Releases'
url 'https://github.com/'
Expand All @@ -69,7 +72,7 @@ repositories {
dependencies {
implementation 'Red-Studio-Ragnarok:Red-Core:0.4-Dev-2'
sources 'Red-Studio-Ragnarok:Red-Core:0.4-Dev-2:sources@jar'
implementation 'com.cleanroommc:groovyscript:0.7.2'
compileOnly 'com.cleanroommc:groovyscript:0.7.2'

jmh 'org.openjdk.jmh:jmh-core:1.36'
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.36'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public IMessage onMessage(final WorkbenchServerMessage workbenchServerMessage, f
if (tileEntity instanceof TileEntityAmmoPress) {
// Since it's based on a queue, you can add whatever you'd like, and it will merely refuse to craft it until you have the resources available.
final TileEntityAmmoPress press = (TileEntityAmmoPress) station;
final ItemStack newStack = new ItemStack(CraftingRegistry.getModernCrafting(workbenchServerMessage.getCraftingGroup(), workbenchServerMessage.getCraftingName()).getItem(), workbenchServerMessage.getQuantity());
final ItemStack newStack = new ItemStack(CraftingRegistry.getModernCrafting(workbenchServerMessage.getCraftingGroup(), workbenchServerMessage.getCraftingName()).getItem().getItem(), workbenchServerMessage.getQuantity());

if (press.hasStack()) {
final ItemStack topQueue = press.getCraftingQueue().getLast();
Expand Down

0 comments on commit 46107bb

Please sign in to comment.