-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve user-generated entity/wirelink outputs (#2891)
* Improve user-generated entity/wirelink outputs - Add output remover - Made adding entity and wirelink outputs more sensible - Cleaned up port assignment to not give bad indices - Removed using CreateWirelinkOutput when it's not necessary - Removed E2 `entity:wirelink()` creates a wirelink output - ??? other magic to make this work * Move link removal to wire_adv Refactored wire_adv netcode to use a single networkstring * Small lints
- Loading branch information
Showing
7 changed files
with
124 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,10 +108,7 @@ __e2setcost(5) | |
e2function wirelink entity:wirelink() | ||
if not IsValid(this) then return self:throw("Invalid entity!", nil) end | ||
if not isOwner(self, this) then return self:throw("You do not own this entity!", nil) end | ||
|
||
if not this.extended then | ||
WireLib.CreateWirelinkOutput( self.player, this, {true} ) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Denneisk
Author
Member
|
||
end | ||
|
||
return this | ||
end | ||
|
||
|
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
why was this removed?