diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2022-07-17 01:21:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 01:21:13 +0200 |
commit | b89ea79c9264d824142f7e8aa68d9fc2591a0eaa (patch) | |
tree | 3b96d25b9f7cbd62b8551025898b5cd7fd513b4e | |
parent | e59fff6f09a950a185729f5d2ab929a949a91856 (diff) | |
parent | 1d7d896562060233c97bf011e9f738715246e81d (diff) | |
download | mtmap-b89ea79c9264d824142f7e8aa68d9fc2591a0eaa.tar.xz |
Change index in Peek and Poke node to uint16
-rw-r--r-- | tools.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ import ( "github.com/anon55555/mt" ) -func (mb *MapBlk) PeekNode(i int) mt.Node { +func (mb *MapBlk) PeekNode(i uint16) mt.Node { return mt.Node{ Param0: mb.Param0[i], Param1: mb.Param1[i], @@ -12,7 +12,7 @@ func (mb *MapBlk) PeekNode(i int) mt.Node { } } -func (mb *MapBlk) PokeNode(i int, node mt.Node) { +func (mb *MapBlk) PokeNode(i uint16, node mt.Node) { mb.Param0[i] = node.Param0 mb.Param1[i] = node.Param1 mb.Param2[i] = node.Param2 |