Skip to content

Commit

Permalink
Fixed void bug with full pocket storages. Closes #33
Browse files Browse the repository at this point in the history
Bumped version for release.
Updated neoforge.
Fixed path structure.
  • Loading branch information
Flanks255 committed Aug 14, 2024
1 parent f3c39c8 commit 7dedd26
Show file tree
Hide file tree
Showing 30 changed files with 100 additions and 101 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[ 1.2.2+1.21 ]
- Fixed shift clicking other items into a full pocket storage voiding.

[ 1.2.1+1.21 ]
- Fixed dupe.

### [ 1.2.0+1.21 ]
- Fixed voiding items taken from inventories.
- Added the ability to press Q or CTRL + Q to drop items directly from a open pocket storage.
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ runs {

dependencies {
implementation "net.neoforged:neoforge:${neo_version}"
compileOnly "mezz.jei:jei-${minecraft_version}-common-api:${jei_version}"//new
compileOnly "mezz.jei:jei-${minecraft_version}-neoforge-api:${jei_version}"
runtimeOnly "mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}"
compileOnly "mezz.jei:jei-${jei_mc_version}-common-api:${jei_version}"//new
compileOnly "mezz.jei:jei-${jei_mc_version}-neoforge-api:${jei_version}"
runtimeOnly "mezz.jei:jei-${jei_mc_version}-neoforge:${jei_version}"

runtimeOnly "curse.maven:JADE-324717:5493270"
//
Expand Down
7 changes: 4 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
org.gradle.jvmargs=-Xmx6G
org.gradle.daemon=false
mod_version=1.2.1
minecraft_version=1.21
neo_version=21.0.146
mod_version=1.2.2
minecraft_version=1.21.1
neo_version=21.1.8
neogradle.subsystems.parchment.minecraftVersion=1.21
neogradle.subsystems.parchment.mappingsVersion=2024.06.23
jei_version=19.4.0.28
jei_mc_version=1.21
curseforge_id=367734
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.flanks255.psu;

import com.flanks255.psu.commands.PSUCommands;
import com.flanks255.psu.crafting.UpgradeRecipe;
import com.flanks255.psu.data.Generator;
import com.flanks255.psu.gui.PSUContainer;
import com.flanks255.psu.gui.PSUGui;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.psu.items.PSUTier;
import com.flanks255.psu.items.PocketStorageUnit;
import com.flanks255.psu.network.PSUNetwork;
import com.flanks255.psu.util.RecipeUnlocker;
package com.flanks255.pocketstorage;

import com.flanks255.pocketstorage.commands.PSUCommands;
import com.flanks255.pocketstorage.crafting.UpgradeRecipe;
import com.flanks255.pocketstorage.data.Generator;
import com.flanks255.pocketstorage.gui.PSUContainer;
import com.flanks255.pocketstorage.gui.PSUGui;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.flanks255.pocketstorage.items.PSUTier;
import com.flanks255.pocketstorage.items.PocketStorageUnit;
import com.flanks255.pocketstorage.network.PSUNetwork;
import com.flanks255.pocketstorage.util.RecipeUnlocker;
import net.minecraft.core.UUIDUtil;
import net.minecraft.core.component.DataComponentType;
import net.minecraft.core.registries.BuiltInRegistries;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flanks255.psu.commands;
package com.flanks255.pocketstorage.commands;

import com.flanks255.psu.inventory.PSUData;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.pocketstorage.inventory.PSUData;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.context.CommandContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package com.flanks255.psu.commands;
package com.flanks255.pocketstorage.commands;

import com.flanks255.psu.util.PSUtils;
import com.flanks255.psu.gui.PSUContainer;
import com.flanks255.psu.inventory.PSUData;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.pocketstorage.util.PSUtils;
import com.flanks255.pocketstorage.gui.PSUContainer;
import com.flanks255.pocketstorage.inventory.PSUData;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.commands.Commands;
import net.minecraft.commands.SharedSuggestionProvider;
import net.minecraft.core.RegistryAccess;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.SimpleMenuProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.commands;
package com.flanks255.pocketstorage.commands;

import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.tree.LiteralCommandNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.flanks255.psu.commands;
package com.flanks255.pocketstorage.commands;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.inventory.PSUData;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.psu.util.PSUtils;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.inventory.PSUData;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.flanks255.pocketstorage.util.PSUtils;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.builder.ArgumentBuilder;
import com.mojang.brigadier.context.CommandContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flanks255.psu.crafting;
package com.flanks255.pocketstorage.crafting;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.items.PocketStorageUnit;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.items.PocketStorageUnit;
import com.mojang.serialization.MapCodec;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.RegistryAccess;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.data;
package com.flanks255.pocketstorage.data;

import net.minecraft.data.DataGenerator;
import net.neoforged.neoforge.data.event.GatherDataEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.flanks255.psu.data;
package com.flanks255.pocketstorage.data;

import com.flanks255.psu.PocketStorage;
import com.flanks255.pocketstorage.PocketStorage;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.data.DataGenerator;
import net.minecraft.world.item.Item;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.flanks255.psu.data;
package com.flanks255.pocketstorage.data;

import com.flanks255.psu.PocketStorage;
import com.flanks255.pocketstorage.PocketStorage;
import net.minecraft.data.DataGenerator;
import net.minecraft.world.item.Item;
import net.neoforged.neoforge.common.data.LanguageProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.flanks255.psu.data;
package com.flanks255.pocketstorage.data;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.crafting.UpgradeRecipe;
import com.flanks255.psu.util.NoAdvRecipeOutput;
import com.flanks255.psu.util.RecipeInjector;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.crafting.UpgradeRecipe;
import com.flanks255.pocketstorage.util.NoAdvRecipeOutput;
import com.flanks255.pocketstorage.util.RecipeInjector;
import net.minecraft.advancements.Criterion;
import net.minecraft.advancements.critereon.InventoryChangeTrigger;
import net.minecraft.core.HolderLookup;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.gui;
package com.flanks255.pocketstorage.gui;

import net.minecraft.world.entity.player.Player;
import net.minecraft.world.Container;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.flanks255.psu.gui;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.inventory.PSUItemHandler;
import com.flanks255.psu.items.PSUTier;
import com.flanks255.psu.network.SlotKeyPacket;
import com.flanks255.psu.util.PSUtils;
import net.minecraft.core.RegistryAccess;
package com.flanks255.pocketstorage.gui;

import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.inventory.PSUItemHandler;
import com.flanks255.pocketstorage.items.PSUTier;
import com.flanks255.pocketstorage.network.SlotKeyPacket;
import com.flanks255.pocketstorage.util.PSUtils;
import net.minecraft.core.component.DataComponents;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.FriendlyByteBuf;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.flanks255.psu.gui;
package com.flanks255.pocketstorage.gui;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.network.SlotClickPacket;
import com.flanks255.psu.network.SlotKeyPacket;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.network.SlotClickPacket;
import com.flanks255.pocketstorage.network.SlotKeyPacket;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.Minecraft;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.flanks255.psu.inventory;
package com.flanks255.pocketstorage.inventory;

import com.flanks255.psu.items.PSUTier;
import com.flanks255.pocketstorage.items.PSUTier;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.RegistryAccess;
import net.minecraft.nbt.CompoundTag;
import net.neoforged.neoforge.common.util.INBTSerializable;
import net.neoforged.neoforge.items.IItemHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flanks255.psu.inventory;
package com.flanks255.pocketstorage.inventory;

import com.flanks255.psu.items.PSUTier;
import com.flanks255.psu.items.PocketStorageUnit;
import com.flanks255.pocketstorage.items.PSUTier;
import com.flanks255.pocketstorage.items.PocketStorageUnit;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.NonNullList;
import net.minecraft.core.component.DataComponents;
Expand Down Expand Up @@ -119,7 +119,7 @@ public ItemStack insertItemSlotless(@Nonnull ItemStack stack, boolean allowEmpty
}
}
}
return ItemStack.EMPTY;
return stack;
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.flanks255.psu.inventory;
package com.flanks255.pocketstorage.inventory;

import com.flanks255.psu.PocketStorage;
import net.minecraft.core.component.DataComponents;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flanks255.psu.inventory;
package com.flanks255.pocketstorage.inventory;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.items.PSUTier;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.items.PSUTier;
import net.minecraft.core.HolderLookup;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.ListTag;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.flanks255.psu.items;
package com.flanks255.pocketstorage.items;

import com.flanks255.psu.PocketStorage;
import com.flanks255.pocketstorage.PocketStorage;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Rarity;
import net.neoforged.neoforge.registries.DeferredItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.flanks255.psu.items;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.gui.PSUContainer;
import com.flanks255.psu.inventory.PSUData;
import com.flanks255.psu.inventory.PSUItemHandler;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.psu.util.CapHelper;
package com.flanks255.pocketstorage.items;

import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.gui.PSUContainer;
import com.flanks255.pocketstorage.inventory.PSUData;
import com.flanks255.pocketstorage.inventory.PSUItemHandler;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.flanks255.pocketstorage.util.CapHelper;
import net.minecraft.ChatFormatting;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.resources.language.I18n;
import net.minecraft.core.BlockPos;
import net.minecraft.core.RegistryAccess;
import net.minecraft.core.component.DataComponents;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.chat.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.flanks255.psu.network;
package com.flanks255.pocketstorage.network;

import com.flanks255.psu.PocketStorage;
import com.flanks255.pocketstorage.PocketStorage;
import net.neoforged.neoforge.network.event.RegisterPayloadHandlersEvent;

public class PSUNetwork {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.flanks255.psu.network;
package com.flanks255.pocketstorage.network;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.gui.PSUContainer;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.gui.PSUContainer;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.codec.ByteBufCodecs;
import net.minecraft.network.codec.StreamCodec;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.flanks255.psu.network;
package com.flanks255.pocketstorage.network;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.gui.PSUContainer;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.gui.PSUContainer;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.codec.ByteBufCodecs;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.util.ExtraCodecs;
import net.neoforged.neoforge.common.util.NeoForgeExtraCodecs;
import net.neoforged.neoforge.network.codec.NeoForgeStreamCodecs;
import net.neoforged.neoforge.network.handling.IPayloadContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.util;
package com.flanks255.pocketstorage.util;

import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.util;
package com.flanks255.pocketstorage.util;

import net.minecraft.advancements.Advancement;
import net.minecraft.advancements.AdvancementHolder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.flanks255.psu.util;
package com.flanks255.pocketstorage.util;

import com.flanks255.psu.PocketStorage;
import com.flanks255.psu.inventory.StorageManager;
import com.flanks255.psu.items.PocketStorageUnit;
import com.flanks255.pocketstorage.PocketStorage;
import com.flanks255.pocketstorage.inventory.StorageManager;
import com.flanks255.pocketstorage.items.PocketStorageUnit;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.core.component.DataComponents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.util;
package com.flanks255.pocketstorage.util;

import net.minecraft.advancements.Advancement;
import net.minecraft.advancements.AdvancementHolder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flanks255.psu.util;
package com.flanks255.pocketstorage.util;

import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.MinecraftServer;
Expand Down

0 comments on commit 7dedd26

Please sign in to comment.