Skip to content

Commit

Permalink
fix EnderItems on multiplayer with Servux
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Nov 15, 2024
1 parent 10a06f0 commit 9d5d2f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ author = masa
mod_file_name = tweakeroo-fabric

# Current mod version
mod_version = 0.21.53-sakura.1
mod_version = 0.21.53-sakura.2

# Required malilib version
malilib_version = 0.21.2-sakura.1
malilib_id = dead5697c6
malilib_version = 0.21.2-sakura.2
malilib_id = 21481c3732

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/fi/dy/masa/tweakeroo/util/RayTraceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
import net.minecraft.world.World;

import fi.dy.masa.malilib.render.InventoryOverlay;
import fi.dy.masa.malilib.util.Constants;
import fi.dy.masa.malilib.util.EntityUtils;
import fi.dy.masa.malilib.util.NbtKeys;
import fi.dy.masa.malilib.util.WorldUtils;
import fi.dy.masa.malilib.util.*;
import fi.dy.masa.tweakeroo.data.ServerDataSyncer;
import fi.dy.masa.tweakeroo.mixin.IMixinAbstractHorseEntity;
import fi.dy.masa.tweakeroo.mixin.IMixinPiglinEntity;
Expand Down Expand Up @@ -234,7 +231,7 @@ else if (trace.getType() == HitResult.Type.ENTITY)

if (enderPair != null && enderPair.getRight() != null && enderPair.getRight().contains(NbtKeys.ENDER_ITEMS))
{
enderItems = InventoryUtils.getPlayerEnderItemsFromNbt(enderPair.getRight(), world.getRegistryManager());
enderItems = fi.dy.masa.malilib.util.InventoryUtils.getPlayerEnderItemsFromNbt(enderPair.getRight(), world.getRegistryManager());
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@

"depends": {
"minecraft": ">=1.21 <=1.21.1",
"malilib": ">=0.21.2-sakura.1"
"malilib": ">=0.21.2-sakura.2"
}
}

0 comments on commit 9d5d2f8

Please sign in to comment.