Skip to content

Commit

Permalink
Fixed Gadget Spawning
Browse files Browse the repository at this point in the history
Original Commit Message: fixed gadget spawning ty MJDerp
Gitea Author: yh0Nathan

Co-authored-by: yh0Nathan <yhonathancaleb@gmail.com>
  • Loading branch information
2 people authored and Birdulon committed Aug 24, 2022
1 parent da06982 commit cb97ac8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
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) {
Expand Down

0 comments on commit cb97ac8

Please sign in to comment.