Skip to content

Commit

Permalink
v2.0.0 - Fixed hologram world sync
Browse files Browse the repository at this point in the history
* Fixed hologram world sync
* Fixed error with PreItemCheck
  • Loading branch information
hamstar0 committed Jun 10, 2020
1 parent f32ba90 commit 42f5b7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Emitters todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ v3.0
- Add glowmasks for NPCs, items, and projectiles
- Draw layer control
- Add reset button to UIs

v2.0
- Find alternative control to access emitter/hologram dialogs

- @MH
- Fix not filtering verbose packets from PacketInfo
- Ping packets are spammy
Expand Down
2 changes: 1 addition & 1 deletion Emitters/Definitions/HologramDefinition_IO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public override void Read( BinaryReader reader ) {
this.WorldLighting = (bool)reader.ReadBoolean();
this.ShaderMode = (HologramShaderMode)reader.ReadUInt16();
this.ShaderTime = (float)reader.ReadSingle();
this.IsActivated = (bool)reader.ReadBoolean();
this.ShaderType = (int)reader.ReadUInt16();
this.IsActivated = (bool)reader.ReadBoolean();
}

public override void Write( BinaryWriter writer ) {
Expand Down
2 changes: 1 addition & 1 deletion Emitters/MyPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Emitters {
class EmittersPlayer : ModPlayer {
public override bool PreItemCheck() {
if( EmittersMod.Instance.EditorButton.PressEditorButtonIfInteracting() ) {
if( EmittersMod.Instance?.EditorButton?.PressEditorButtonIfInteracting() ?? false ) {
return false;
}
return base.PreItemCheck();
Expand Down

0 comments on commit 42f5b7c

Please sign in to comment.