Skip to content

Commit

Permalink
Fix seed range for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
danijar committed Sep 14, 2021
1 parent bc3914f commit 10aabdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crafter/worldgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def generate_world(world, player):
simplex = opensimplex.OpenSimplex(seed=world.random.randint(0, 2 ** 32))
simplex = opensimplex.OpenSimplex(seed=world.random.randint(0, 2 ** 31 - 1))
tunnels = np.zeros(world.area, np.bool)
for x in range(world.area[0]):
for y in range(world.area[1]):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name='crafter',
version='1.6.1',
version='1.6.2',
description='Open world survival game for reinforcement learning.',
url='http://github.com/danijar/crafter',
long_description=pathlib.Path('README.md').read_text(),
Expand Down

0 comments on commit 10aabdb

Please sign in to comment.