Skip to content

Commit

Permalink
Merge pull request #312 from Amulet-Team/mc1.21.2
Browse files Browse the repository at this point in the history
Mc1.21.2
  • Loading branch information
gentlegiantJGC authored Oct 24, 2024
2 parents 5a32a1c + bbdd187 commit e938f1f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ prototyping/
*.c
*.html

# Visual Studio Files
.vs/
sln/
*.ilk
*.exp
*.lib
*.pdb

worlds_temp/
world_temp/
logs/
15 changes: 15 additions & 0 deletions amulet/level/formats/leveldb_world/interface/chunk/leveldb_41.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from __future__ import annotations

from .leveldb_40 import (
LevelDB40Interface as ParentInterface,
)


class LevelDB41Interface(ParentInterface):
chunk_version = 41

def __init__(self):
super().__init__()


export = LevelDB41Interface
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
38: ((1, 17, 0, 0), (1, 17, 0, 0)), # ?
# continue without experimental gameplay
39: ((1, 18, 0, 0), (1, 18, 29, 999)),
40: ((1, 18, 30, 0), (999, 999, 999, 999)),
40: ((1, 18, 30, 0), (1, 21, 31, 999)),
41: ((1, 21, 40, 0), (999, 999, 999, 999)),
} # TODO: fill this list with the actual last game version number each chunk version was last used in


Expand Down
2 changes: 1 addition & 1 deletion amulet/level/interfaces/chunk/anvil/anvil_3463.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self):

@staticmethod
def minor_is_valid(key: int):
return 3454 <= key <= 4000
return 3454 <= key <= 4100


export = Anvil3463Interface

0 comments on commit e938f1f

Please sign in to comment.