forked from mirrors/NBTExplorer
Shifting by wrong data width in FusedDataArray
This commit is contained in:
parent
0dd73dceba
commit
8fc7e46afc
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ namespace Substrate.Core
|
||||||
|
|
||||||
public int this[int x, int y, int z]
|
public int this[int x, int y, int z]
|
||||||
{
|
{
|
||||||
get { return (_array0[x, y, z] << _array0.DataWidth) + _array1[x, y, z]; }
|
get { return (_array0[x, y, z] << _array1.DataWidth) + _array1[x, y, z]; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value >= (1 << _array1.DataWidth)) {
|
if (value >= (1 << _array1.DataWidth)) {
|
||||||
|
@ -66,7 +66,7 @@ namespace Substrate.Core
|
||||||
|
|
||||||
public int this[int i]
|
public int this[int i]
|
||||||
{
|
{
|
||||||
get { return (_array0[i] << _array0.DataWidth) + _array1[i]; }
|
get { return (_array0[i] << _array1.DataWidth) + _array1[i]; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value >= (1 << _array1.DataWidth)) {
|
if (value >= (1 << _array1.DataWidth)) {
|
||||||
|
|
Loading…
Reference in a new issue