mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 20:56:28 +00:00
Fixed Gadget Spawning
Original Commit Message: fixed gadget spawning ty MJDerp Gitea Author: yh0Nathan Co-authored-by: yh0Nathan <yhonathancaleb@gmail.com>
This commit is contained in:
parent
da06982d5d
commit
cb97ac8250
@ -93,6 +93,7 @@ public final class SpawnCommand implements CommandHandler {
|
||||
entity = new EntityItem(scene, null, itemData, pos, 1, true);
|
||||
}
|
||||
if (gadgetData != null) {
|
||||
pos.addY(-3);
|
||||
entity = new EntityVehicle(scene, targetPlayer.getSession().getPlayer(), gadgetData.getId(), 0, pos, targetPlayer.getRotation()); // TODO: does targetPlayer.getSession().getPlayer() have some meaning?
|
||||
int gadgetId = gadgetData.getId();
|
||||
switch (gadgetId) {
|
||||
|
Loading…
Reference in New Issue
Block a user