zach2039 / oldguns

A Minecraft mod that adds a collection of antique firearms. Heavily inspired by Ye Olde Minegunner mod from the beta days of modded Minecraft. Smelt bullets and craft parts to create guns.
GNU Affero General Public License v3.0
4 stars 1 forks source link

Guard Villagers crash the game when they try to shoot Old Guns muskets #34

Closed ghost closed 1 year ago

ghost commented 2 years ago

Describe the bug Guard Villagers can be equipped with a gun from Old Guns, but when they attempt to point and shoot it at an aggressive mob like a zombie the game crashes and the save becomes unusable

To Reproduce Steps to reproduce the behavior:

  1. Install the mods (Old Guns, Guard Villagers, Patchouli).
  2. Crouch+right click on an unemployed villager with a vanilla sword to make him a guard villager.
  3. Open his inventory with right click and put an Old Guns musket in his weapon slot.
  4. Spawn an aggressive mob like a zombie

Expected behavior The guard villager will point the musket at the zombie and wait a moment as if aiming, and when he shoots, the game will crash and the save will not open.

Screenshots image 2022-08-22_17 06 02 2022-08-22_17 06 18 2022-08-22_17 06 26

Mod Version 1.18.2

Mod List

oldguns_v1.18.1-3.2.0-24.jar
guardvillagers-1.18.2.1.4.3.jar
Patchouli-1.18.2-71.1.jar
...

Additional context sorry this took so long lol ask if u need any more info

zach2039 commented 1 year ago

Fixed in both v3.6.3-38 and v3.7.1-39 releases, though the projectile spawned when fired is just an arrow. Will need some help from Guard Villagers' author on how best to tie in proper functionality.