forked from mirrors/NBTExplorer
Merge branch 'master' of github.com:jaquadro/Substrate
This commit is contained in:
commit
ba18b4b59a
1 changed files with 4 additions and 12 deletions
|
@ -30,13 +30,9 @@ namespace Substrate.Core
|
|||
get { return (_array0[x, y, z] << _array1.DataWidth) + _array1[x, y, z]; }
|
||||
set
|
||||
{
|
||||
if (value >= (1 << _array1.DataWidth)) {
|
||||
_array0[x, y, z] = value >> _array1.DataWidth;
|
||||
_array1[x, y, z] = value & _mask1;
|
||||
}
|
||||
else
|
||||
_array1[x, y, z] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int XDim
|
||||
|
@ -69,13 +65,9 @@ namespace Substrate.Core
|
|||
get { return (_array0[i] << _array1.DataWidth) + _array1[i]; }
|
||||
set
|
||||
{
|
||||
if (value >= (1 << _array1.DataWidth)) {
|
||||
_array0[i] = value >> _array1.DataWidth;
|
||||
_array1[i] = value & _mask1;
|
||||
}
|
||||
else
|
||||
_array1[i] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int Length
|
||||
|
|
Loading…
Reference in a new issue