feat: remove some shit
This commit is contained in:
+4
-16
@@ -2126,10 +2126,7 @@ class GMLIB_BinaryStream {
|
||||
sendTo(player, free = true) {
|
||||
if (this.#destroy) throw new Error("The BinaryStream has been destroyed");
|
||||
GMLIB_BinaryStream_API.sendTo(this.#id, player, free);
|
||||
if (free) {
|
||||
this.destroy();
|
||||
this.#destroy = true;
|
||||
}
|
||||
if (free) this.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2140,10 +2137,7 @@ class GMLIB_BinaryStream {
|
||||
sendToPlayers(players, free = true) {
|
||||
if (this.#destroy) throw new Error("The BinaryStream has been destroyed");
|
||||
players.forEach(player => this.sendTo(player, false));
|
||||
if (free) {
|
||||
this.destroy();
|
||||
this.#destroy = true;
|
||||
}
|
||||
if (free) this.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2153,10 +2147,7 @@ class GMLIB_BinaryStream {
|
||||
sendToAll(free = true) {
|
||||
if (this.#destroy) throw new Error("The BinaryStream has been destroyed");
|
||||
mc.getOnlinePlayers().forEach(player => this.sendTo(player, false));
|
||||
if (free) {
|
||||
this.destroy();
|
||||
this.#destroy = true;
|
||||
}
|
||||
if (free) this.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2167,10 +2158,7 @@ class GMLIB_BinaryStream {
|
||||
sendToDimension(dimid, free = true) {
|
||||
if (this.#destroy) throw new Error("The BinaryStream has been destroyed");
|
||||
mc.getOnlinePlayers().filter(player => player.pos.dimid === dimid).forEach(player => this.sendTo(player, false));
|
||||
if (free) {
|
||||
this.destroy();
|
||||
this.#destroy = true;
|
||||
}
|
||||
if (free) this.destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user