Skip to content

Commit

Permalink
Update Forge, fix packet again, fix turkeys not dropping items
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 22, 2019
1 parent 65ab46b commit 3b3a66d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Forge
mc_version = 1.14.4
forge_version = 28.1.0
forge_version = 28.1.92
mappings_version = 20190914
mappings_channel = snapshot
mappings_mc_version = 1.14.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import net.minecraftforge.fml.network.simple.SimpleChannel;


@SuppressWarnings("deprecation")
@Mod.EventBusSubscriber(modid = Ref.MOD_ID)
@Mod(value = Ref.MOD_ID)
public class BetterAnimalsPlusMod {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import its_meow.betteranimalsplus.util.EntityTypeContainer;
import its_meow.betteranimalsplus.util.EntityTypeContainerTameable;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkDirection;
import net.minecraftforge.fml.network.NetworkEvent;

public class ClientConfigurationPacket {
Expand Down Expand Up @@ -64,7 +63,7 @@ public static ClientConfigurationPacket decode(PacketBuffer buf) {
}

public static class Handler {
public static boolean handle(ClientConfigurationPacket msg, Supplier<NetworkEvent.Context> ctx) {
public static void handle(ClientConfigurationPacket msg, Supplier<NetworkEvent.Context> ctx) {
BetterAnimalsPlusConfig.coyotesHostileDaytime = msg.coyoteHostileDaytime;
for(String key : msg.tameItems.keySet()) {
String[] items = msg.tameItems.get(key);
Expand All @@ -74,7 +73,7 @@ public static boolean handle(ClientConfigurationPacket msg, Supplier<NetworkEven
cont2.setTameItems(items);
}
}
return true;
ctx.get().setPacketHandled(true);
}
}

Expand Down

0 comments on commit 3b3a66d

Please sign in to comment.