Commit cb97ac82 authored by Benj's avatar Benj Committed by Luke H-W
Browse files

Fixed Gadget Spawning



Original Commit Message: fixed gadget spawning ty MJDerp
Gitea Author: yh0Nathan
Co-authored-by: default avataryh0Nathan <yhonathancaleb@gmail.com>
parent da06982d
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment