Skip to content

Commit

Permalink
update to 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageAnime committed Mar 24, 2024
1 parent ee39c5f commit cca6623
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

include "curse.maven:stacc-api-820136:4995895"
modRuntimeOnly(include "curse.maven:stacc-api-820136:4995895")
include "curse.maven:stacc-api-820136:4995911"
modRuntimeOnly(include "curse.maven:stacc-api-820136:4995911")

modApi("me.shedaniel.cloth:cloth-config-fabric:11.1.106") {
modApi("me.shedaniel.cloth:cloth-config-fabric:12.0.119") {
exclude(group: "net.fabricmc.fabric-api")
}

modImplementation "com.terraformersmc:modmenu:7.2.2"
modApi "com.terraformersmc:modmenu:7.2.2"
modImplementation "com.terraformersmc:modmenu:8.0.1"
modApi "com.terraformersmc:modmenu:8.0.1"

}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.14.24
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.15.1

# Mod Properties
mod_version = 1.0.0-fabric
mod_version = 1.0.1-fabric
maven_group = net.averageanime.stacksizeedit
archives_base_name = stacksizeedit

# Dependencies
fabric_version=0.90.7+1.20.1
fabric_version=0.91.2+1.20.2
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public ItemStack dispenseSilently(BlockPointer pointer, ItemStack stack) {
ItemDispenserBehavior fallbackBehavior = new ItemDispenserBehavior();
ItemStack emptyBucketStack = new ItemStack(Items.BUCKET);
FluidModificationItem fluidModificationItem = (FluidModificationItem) stack.getItem();
BlockPos blockPos = pointer.getPos().offset(pointer.getBlockState().get(DispenserBlock.FACING));
World world = pointer.getWorld();
BlockPos blockPos = pointer.pos().offset(pointer.state().get(DispenserBlock.FACING));
World world = pointer.world();

if (fluidModificationItem.placeFluid( null, world, blockPos, null)) {
fluidModificationItem.onEmptied( null, world, stack, blockPos);
if (stack.getCount() > 1) {
ItemStack newStack = stack.copy();
newStack.decrement(1);
if (((DispenserBlockEntity)pointer.getBlockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) {
if (((DispenserBlockEntity)pointer.blockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) {
fallbackBehavior.dispense(pointer, emptyBucketStack.copy());
}
return newStack;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "stacksizeedit",
"version": "1.0.0",
"version": "1.0.1",
"name": "Stack Size Edit",
"description": "Edit the stack size limit.",
"authors": [
Expand Down

0 comments on commit cca6623

Please sign in to comment.