mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Fix Automatic Event Subscriber not detecting mod id defaults, and fix test mods.
This commit is contained in:
1 parent
8c8ef2d9e1
commit
3c5728f070
7 files changed
+61
-56
No files matched your search
@@ -60,7 +60,8 @@ public class GravityAttributeTest
|
||||
private static final AttributeModifier REDUCED_GRAVITY = (new AttributeModifier(REDUCED_GRAVITY_ID, "Reduced gravity", (double)-0.80, Operation.MULTIPLY_TOTAL)).setSaved(false);
|
||||
|
||||
|
||||
public GravityAttributeTest() {
|
||||
public GravityAttributeTest()
|
||||
{
|
||||
if (ENABLE)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
@@ -71,7 +72,7 @@ public class GravityAttributeTest
|
||||
@SubscribeEvent
|
||||
public void worldTick(TickEvent.WorldTickEvent event)
|
||||
{
|
||||
if (ENABLE && !event.world.isRemote)
|
||||
if (!event.world.isRemote)
|
||||
{
|
||||
if (ticks++ > 60)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user