mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 14:56:25 +01:00
Fix entity pick request for cherry and bamboo boats (#4522)
This commit is contained in:
parent
d24a4766b4
commit
4ea94f89a2
1 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
|
* Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
@ -62,13 +62,17 @@ public class BedrockEntityPickRequestTranslator extends PacketTranslator<EntityP
|
||||||
case 2 -> "birch";
|
case 2 -> "birch";
|
||||||
case 3 -> "jungle";
|
case 3 -> "jungle";
|
||||||
case 4 -> "acacia";
|
case 4 -> "acacia";
|
||||||
//case 5 -> "cherry"; TODO
|
case 5 -> "cherry";
|
||||||
case 6 -> "dark_oak";
|
case 6 -> "dark_oak";
|
||||||
case 7 -> "mangrove";
|
case 7 -> "mangrove";
|
||||||
//case 8 -> "bamboo";
|
case 8 -> "bamboo";
|
||||||
default -> "oak";
|
default -> "oak";
|
||||||
};
|
};
|
||||||
itemName = typeOfBoat + "_" + entity.getDefinition().entityType().name().toLowerCase(Locale.ROOT);
|
itemName = typeOfBoat + "_" + entity.getDefinition().entityType().name().toLowerCase(Locale.ROOT);
|
||||||
|
// Bamboo boat is a raft
|
||||||
|
if (variant == 8) {
|
||||||
|
itemName = itemName.replace("boat", "raft");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case LEASH_KNOT -> itemName = "lead";
|
case LEASH_KNOT -> itemName = "lead";
|
||||||
case CHEST_MINECART, COMMAND_BLOCK_MINECART, FURNACE_MINECART, HOPPER_MINECART, TNT_MINECART ->
|
case CHEST_MINECART, COMMAND_BLOCK_MINECART, FURNACE_MINECART, HOPPER_MINECART, TNT_MINECART ->
|
||||||
|
|
Loading…
Reference in a new issue