Cant spawn some vehicles. #171

Closed
opened 2024-02-06 21:37:15 +00:00 by JuliGame · 6 comments
  1. Buy a vehicle.
  2. Spawn it.
    Vehicle Load without errors

Video:
https://www.youtube.com/watch?v=afTU4NjEFz8

[18:32:46 ERROR]: Could not pass event InventoryClickEvent to VehiclesPlus v3.0.0-SNAPSHOT
java.lang.NullPointerException: Cannot invoke "nl.sbdeveloper.vehiclesplus.api.vehicles.HolderItemPosition.setItem(org.bukkit.entity.ArmorStand, org.bukkit.inventory.ItemStack)" because "this.position" is null
        at nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart.updateHolder(EquipablePart.java:106) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart.spawnStand(EquipablePart.java:112) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.lambda$new$0(SpawnedVehicle.java:119) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
        at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.<init>(SpawnedVehicle.java:119) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawnVehicle(StorageVehicle.java:236) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawn(StorageVehicle.java:208) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.inventories.garages.VehicleGarageGUI.lambda$new$4(VehicleGarageGUI.java:82) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.libs.inventory.ClickableItem.run(ClickableItem.java:26) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at nl.sbdeveloper.vehiclesplus.libs.inventory.InventoryManager$InvListener.lambda$onInventoryClick$2(InventoryManager.java:172) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at nl.sbdeveloper.vehiclesplus.libs.inventory.InventoryManager$InvListener.onInventoryClick(InventoryManager.java:172) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:git-Purpur-"544a2b6"]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3191) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:54) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1485) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1462) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1385) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1363) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1247) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]

1) Buy a vehicle. 2) Spawn it. Vehicle Load without errors Video: https://www.youtube.com/watch?v=afTU4NjEFz8 ``` [18:32:46 ERROR]: Could not pass event InventoryClickEvent to VehiclesPlus v3.0.0-SNAPSHOT java.lang.NullPointerException: Cannot invoke "nl.sbdeveloper.vehiclesplus.api.vehicles.HolderItemPosition.setItem(org.bukkit.entity.ArmorStand, org.bukkit.inventory.ItemStack)" because "this.position" is null at nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart.updateHolder(EquipablePart.java:106) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart.spawnStand(EquipablePart.java:112) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.lambda$new$0(SpawnedVehicle.java:119) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.SpawnedVehicle.<init>(SpawnedVehicle.java:119) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawnVehicle(StorageVehicle.java:236) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle.spawn(StorageVehicle.java:208) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.inventories.garages.VehicleGarageGUI.lambda$new$4(VehicleGarageGUI.java:82) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.inventory.ClickableItem.run(ClickableItem.java:26) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.inventory.InventoryManager$InvListener.lambda$onInventoryClick$2(InventoryManager.java:172) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] at nl.sbdeveloper.vehiclesplus.libs.inventory.InventoryManager$InvListener.onInventoryClick(InventoryManager.java:172) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:git-Purpur-"544a2b6"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3191) ~[?:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:58) ~[?:?] at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:23) ~[?:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:54) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1485) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:194) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1462) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1385) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1363) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1247) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at java.lang.Thread.run(Thread.java:840) ~[?:?] ```
JuliGame added the
Bug
label 2024-02-06 21:37:15 +00:00
Member

May I ask uf you were using addon parts in v2?

May I ask uf you were using addon parts in v2?
Author

I converted the V2 vehicles to v3, no idea if I was using addons

I converted the V2 vehicles to v3, no idea if I was using addons
Author

Fixed it when adding "position: HEAD" to skin

Fixed it when adding "position: HEAD" to skin
Author

Would be nice to have an error on plugin startup.

Would be nice to have an error on plugin startup.
cedric added the
v3
label 2024-02-08 07:55:29 +00:00
cedric reopened this issue 2024-02-08 07:55:40 +00:00
Member

conversion problem

conversion problem
Owner

Fixed it when adding "position: HEAD" to skin

Yup, related to VehiclesPlusConverter.

> Fixed it when adding "position: HEAD" to skin Yup, related to VehiclesPlusConverter.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#171
No description provided.