Skip to content

Commit

Permalink
Fix Poke Ball tiles
Browse files Browse the repository at this point in the history
- Uncomment quickspawn line and no longer store result in local variable
- Correct SyncPkballTileRpc not sending isDisposable or player properties
  • Loading branch information
InfinaMii committed Jan 9, 2025
1 parent 5009060 commit 35ab0a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Content/Items/PokeBalls/BasePkballTile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public override bool RightClick(int i, int j)
{
if (e.TryOpen() && !e.Item.IsAir)
{
//var item = player.QuickSpawnItem(Entity.GetSource_None(), e.Item, e.Item.stack);
player.QuickSpawnItem(Entity.GetSource_None(), e.Item, e.Item.stack);
e.Item.TurnToAir();
}
}
Expand Down
2 changes: 2 additions & 0 deletions Content/Packets/SyncPkballTileRpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public void Serialise(BinaryWriter writer)
{
_item.Serialize(writer, ItemSerializationContext.Syncing);
writer.Write(_isOpen);
writer.Write(_isDisposable);
writer.Write(_player);
writer.Write(_tileCoords.X);
writer.Write(_tileCoords.Y);
}
Expand Down

0 comments on commit 35ab0a6

Please sign in to comment.