Skip to content

Commit

Permalink
feat: ✨ Changes related to new support for automation entities in Sto…
Browse files Browse the repository at this point in the history
…rage's hopper upgrade. Basically this makes backpacks compatible with the latest core
  • Loading branch information
P3pp3rF1y committed Dec 23, 2024
1 parent 80dea06 commit c74319f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ loader_version_range=[4,)
mod_id=sophisticatedbackpacks
mod_name=Sophisticated Backpacks
mod_license=GNU General Public License v3.0
mod_version=3.20.28
mod_version=3.20.29
mod_group_id=sophisticatedbackpacks
mod_authors=P3pp3rF1y, Ridanisaurus
mod_description=Fancy and functional backpacks.
Expand All @@ -34,7 +34,7 @@ chipped_cf_file_id=5506938
resourcefullib_cf_file_id=5483169
athena_cf_file_id=5431579
curios_cf_file_id=5546342
sc_version=[1.21-1.0.4,1.22)
sc_version=[1.21-1.0.5,1.22)

#publish
curseforge_id=422301
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.player.Inventory;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.inventory.Slot;
Expand Down Expand Up @@ -56,6 +57,11 @@ public Optional<BlockPos> getBlockPosition() {
return Optional.empty();
}

@Override
public Optional<Entity> getEntity() {
return Optional.of(player);
}

@Override
protected void sendStorageSettingsToClient() {
if (player.level().isClientSide) {
Expand Down

0 comments on commit c74319f

Please sign in to comment.