Rename data module to mcdata
This commit is contained in:
@@ -4,7 +4,8 @@ from math import floor, ceil, sqrt, hypot
|
||||
|
||||
import blocks
|
||||
importlib.reload(blocks)
|
||||
import data
|
||||
import mcdata
|
||||
importlib.reload(mcdata)
|
||||
|
||||
TICK = 0.05
|
||||
|
||||
@@ -86,7 +87,7 @@ def break_time(block_id, held_item=0, in_water=False, on_ground=True, enchantmen
|
||||
|
||||
can_harvest = 'harvestTools' not in block_data or str(held_item) in block_data['harvestTools']
|
||||
material = block_data.get('material', 'n/a')
|
||||
tool_multipliers = data.mcd.materials.get(material, [])
|
||||
tool_multipliers = mcdata.mcd.materials.get(material, [])
|
||||
is_best_tool = held_item in tool_multipliers
|
||||
time = block_data['hardness']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user