Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageAnime committed Oct 13, 2024
1 parent 1aaec2b commit 2132e72
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Stack Size Edit [Fabric] is a mod that allows you to edit the stack size limit o

### **My Other Mods**

* [Create: Food](https://www.curseforge.com/minecraft/mc-mods/create-food-fabric)
* [Create: Metalwork](https://www.curseforge.com/minecraft/mc-mods/create-metalwork-fabric)
* [Create: Food](https://www.curseforge.com/minecraft/mc-mods/create-food)
* [Create: Metalwork](https://www.curseforge.com/minecraft/mc-mods/create-metalwork)
* [Rune Essence](https://www.curseforge.com/minecraft/mc-mods/rune-essence)
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:4995911"
modRuntimeOnly(include "curse.maven:stacc-api-820136:4995911")
include "curse.maven:stacc-api-820136:4995895"
modRuntimeOnly(include "curse.maven:stacc-api-820136:4995895")

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

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

}

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.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.7
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.14.24

# Mod Properties
mod_version = 1.0.3-fabric
mod_version = 1.0.4-1.20.1-fabric
maven_group = net.averageanime.stacksizeedit
archives_base_name = stacksizeedit

# Dependencies
fabric_version=0.96.11+1.20.4
fabric_version=0.90.7+1.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class ModConfig implements ConfigData {
@Comment("Format: §emod:name:stack_size §ror §e#tag:name:stack_size.")
@ConfigEntry.Category("StackSettings")
public List<String> itemOverride = List.of(
"#c:not_stackable:1"
"#c:not_stackable:1",
"#c:16_stackable:16"
);

@Comment("Set this to §aYes §fif you want font size to scale with amount.")
Expand Down
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.pos().offset(pointer.state().get(DispenserBlock.FACING));
World world = pointer.world();
BlockPos blockPos = pointer.getPos().offset(pointer.getBlockState().get(DispenserBlock.FACING));
World world = pointer.getWorld();

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.blockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) {
if (((DispenserBlockEntity)pointer.getBlockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) {
fallbackBehavior.dispense(pointer, emptyBucketStack.copy());
}
return newStack;
Expand Down

0 comments on commit 2132e72

Please sign in to comment.