mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 16:34:56 +01: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:
@@ -93,6 +93,7 @@ public final class SpawnCommand implements CommandHandler {
|
|||||||
entity = new EntityItem(scene, null, itemData, pos, 1, true);
|
entity = new EntityItem(scene, null, itemData, pos, 1, true);
|
||||||
}
|
}
|
||||||
if (gadgetData != null) {
|
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?
|
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();
|
int gadgetId = gadgetData.getId();
|
||||||
switch (gadgetId) {
|
switch (gadgetId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user