geforkt von Mirrors/FastAsyncWorldEdit
Handle null World cases for EditSession when actor is console.
It actually should never be null, but old code does it.
Dieser Commit ist enthalten in:
Ursprung
0148e8bcc6
Commit
69460094b8
@ -73,8 +73,7 @@ public class EditSessionEvent extends Event {
|
|||||||
* @param maxBlocks the maximum number of block changes
|
* @param maxBlocks the maximum number of block changes
|
||||||
* @param stage the stage
|
* @param stage the stage
|
||||||
*/
|
*/
|
||||||
public EditSessionEvent(World world, Actor actor, int maxBlocks, Stage stage) {
|
public EditSessionEvent(@Nullable World world, Actor actor, int maxBlocks, Stage stage) {
|
||||||
checkNotNull(world);
|
|
||||||
this.world = world;
|
this.world = world;
|
||||||
this.actor = actor;
|
this.actor = actor;
|
||||||
this.maxBlocks = maxBlocks;
|
this.maxBlocks = maxBlocks;
|
||||||
@ -95,7 +94,7 @@ public class EditSessionEvent extends Event {
|
|||||||
*
|
*
|
||||||
* @return the world
|
* @return the world
|
||||||
*/
|
*/
|
||||||
public World getWorld() {
|
public @Nullable World getWorld() {
|
||||||
return world;
|
return world;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren