@@ -192,7 +192,7 @@ private Spatial createObjectModel(Entity e) {
192
192
if (objectViewState != null ) {
193
193
result = objectLoader .load (assetManager , objectViewState );
194
194
if (result != null ) {
195
- EntityViewControl control = new ObjectViewControl (e .getId (), entityData , kwdFile .getObject (objectViewState .objectId ), objectViewState , assetManager , textParser );
195
+ EntityViewControl control = new ObjectViewControl (e .getId (), entityData , kwdFile .getObject (objectViewState .objectId ), objectViewState , assetManager , textParser . getObjectTextParser () );
196
196
result .addControl (control );
197
197
198
198
result .setCullHint (objectViewState .visible ? Spatial .CullHint .Inherit : Spatial .CullHint .Always );
@@ -222,7 +222,7 @@ private Spatial createCreatureModel(Entity e) {
222
222
Creature creature = kwdFile .getCreature (creatureViewState .creatureId );
223
223
result = creatureLoader .load (assetManager , creatureViewState );
224
224
if (result != null ) {
225
- EntityViewControl control = new CreatureViewControl (e .getId (), entityData , creature , creatureViewState .state , assetManager , textParser );
225
+ EntityViewControl control = new CreatureViewControl (e .getId (), entityData , creature , creatureViewState .state , assetManager , textParser . getCreatureTextParser () );
226
226
result .addControl (control );
227
227
228
228
CreatureFlowerControl flowerControl = new CreatureFlowerControl (e .getId (), entityData , creature , assetManager );
@@ -253,7 +253,7 @@ private Spatial createDoorModel(Entity e) {
253
253
if (doorViewState != null ) {
254
254
Door door = kwdFile .getDoorById (doorViewState .doorId );
255
255
result = doorLoader .load (assetManager , doorViewState );
256
- EntityViewControl control = new DoorViewControl (e .getId (), entityData , door , doorViewState , assetManager , textParser , kwdFile .getObject (door .getKeyObjectId ()));
256
+ EntityViewControl control = new DoorViewControl (e .getId (), entityData , door , doorViewState , assetManager , textParser . getDoorTextParser () , kwdFile .getObject (door .getKeyObjectId ()));
257
257
result .addControl (control );
258
258
259
259
DoorFlowerControl flowerControl = new DoorFlowerControl (e .getId (), entityData , door , assetManager );
@@ -283,7 +283,7 @@ private Spatial createTrapModel(Entity e) {
283
283
if (trapViewState != null ) {
284
284
Trap trap = kwdFile .getTrapById (trapViewState .trapId );
285
285
result = trapLoader .load (assetManager , trapViewState );
286
- EntityViewControl control = new TrapViewControl (e .getId (), entityData , trap , trapViewState , assetManager , textParser );
286
+ EntityViewControl control = new TrapViewControl (e .getId (), entityData , trap , trapViewState , assetManager , textParser . getTrapTextParser () );
287
287
result .addControl (control );
288
288
289
289
TrapFlowerControl flowerControl = new TrapFlowerControl (e .getId (), entityData , trap , assetManager );
0 commit comments