Skip to content

Commit

Permalink
only call into init when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
SirYwell committed Jan 6, 2025
1 parent f809c6c commit 052fdba
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public BukkitImplAdapter<net.minecraft.nbt.Tag> getParent() {

@Override
protected void ensureInit() {
init();
if (!this.initialised) {
init();
}
}

private synchronized boolean init() {
Expand Down

0 comments on commit 052fdba

Please sign in to comment.