-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed spawning issue on server startup - spawning of items is now delayed for 1 second after the server loaded, so the items will have the correct position. Signed-off-by: narrowtux <narrow.m@gmail.com>
- Loading branch information
Showing
21 changed files
with
160 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.narrowtux.showcase; | ||
|
||
/** | ||
* This class is used one second after onEnable() to prevent that the items get spawned weirdly. | ||
* @author tux | ||
* | ||
*/ | ||
public class ItemSpawner extends Object implements Runnable { | ||
|
||
public void run() { | ||
for(ShowcaseItem item:Showcase.instance.showcasedItems) { | ||
if(item.getItem() == null && item.isChunkLoaded()) { | ||
item.respawn(); | ||
} | ||
} | ||
Showcase.instance.startup = false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.