saved player inventory cannot be restored #11

Open
opened 2025-12-17 07:17:21 +01:00 by MiauRizius · 0 comments
Owner

obj = (Entity) Class.forName(itemName).getDeclaredConstructor().newInstance(panel);

that‘s not the constructor with arguments, panel won‘t be passed to the originally intended constructor

https://git.miaurizius.de/MiauRizius/JGame2D/src/commit/5dbf7fcf1fd1105dbbc90b1d8a5156051401d175/src/de/miaurizius/jgame2d/data/SaveLoad.java#L20 that‘s not the constructor with arguments, `panel` won‘t be passed to the originally intended constructor
MiauRizius added the
Kind/Bug
label 2025-12-17 07:17:21 +01:00
MiauRizius self-assigned this 2025-12-17 07:17:21 +01:00
MiauRizius added the
Priority
Critical
1
Reviewed
Confirmed
1
labels 2025-12-17 08:03:46 +01:00
Sign in to join this conversation.
No description provided.