mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
- Added /mt blocks and /mt entities commands
- Further preparation of event manager for the event update - Can now request all blocks and entities using the global game variable - Improved automatic handling of version numbers
This commit is contained in:
1 parent
b50a88227b
commit
56b8c9355c
81 files changed
+751
-506
No files matched your search
@@ -97,9 +97,9 @@ public class EnvironmentGlobal implements IEnvironmentGlobal {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putValue(String name, IZenSymbol value) {
|
||||
public void putValue(String name, IZenSymbol value, ZenPosition position) {
|
||||
if (local.containsKey(name)) {
|
||||
throw new RuntimeException("already exists");
|
||||
error(position, "Value already defined in this scope: " + name);
|
||||
} else {
|
||||
local.put(name, value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user