Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
First, you can't declare a variable inside a method as "public".
Second, you're using the wrong Player.
Finally, you should be using "Player.InModBiome()" instead of "IsBiomeActive()". tModLoader already calls "IsBiomeActive()" every frame and stores the result, so it's generally better to use that stored result.
In all, you "EditSpawnRate()" should look like this:
Some of these issues are basic C# syntax, so please make sure you brush up on C# so you don't run into these issues again.