Sign in to follow this  
Jonneh

Flower growth issue

Recommended Posts

The checkForGrassGrowth in TilePoller has a problem if grass grows and a new flowerType of null is generated in the same call, causing a null pointer exception.

 

Can be fixed by changing the flower growth part to

	FlowerType newFlowerType = Terraforming.getRandomFlower(flowerType, false);
	if(andFlowers && createFlowers && newFlowerType != null) {
		flowerType = newFlowerType;
		dataHasChanged = true;
	}

 

Stack trace

Nov 23, 2015 12:42:35 AM com.wurmonline.server.Server run
SEVERE: null
java.lang.NullPointerException
        at com.wurmonline.mesh.GrassData.encodeGrassTileData(GrassData.java:572)
        at com.wurmonline.server.zones.TilePoller.checkForGrassGrowth(TilePoller.java:763)
        at com.wurmonline.server.zones.TilePoller.checkEffects(TilePoller.java:400)
        at com.wurmonline.server.zones.TilePoller.pollNextTile(TilePoller.java:235)
        at com.wurmonline.server.zones.TilePoller.pollNext(TilePoller.java:165)
        at com.wurmonline.server.Server.run(Server.java:1709)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)

 

Share this post


Link to post
Share on other sites

My server has no flowers ever to pick. Could you explain where these changes you refer to are located exactly? Thanks.

Share this post


Link to post
Share on other sites

The issue reported by Jonneh has been fixed and will be included the next time Wurm Unlimited updates on Steam.

 

I do not have an ETA on that update however.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this