CraftTweaker Integration

CraftTweaker Integration

1M Downloads

Wiki: IWorld.playSound() actually don't need world as first param

Krutoy242 opened this issue ยท 1 comments

commented

IWorld.playSound shouldn't have IWorld world as first parameter, because we already calling function from IWorld instance. Also, giving IWorld as first param we got an CT error:

a method available but none matches the parameters (ZenTypeNative: crafttweaker.world.IWorld, string, string, ZenTypeNative: crafttweaker.util.Position3f, float, float)
This is usually an error in your script, not in the mod
playSound(ZenTypeNative: crafttweaker.world.IWorld, string, string, ZenTypeNative: crafttweaker.util.Position3f, float, float, Optional bool)
commented

The first parameter is used to pass the object on which the method is called to java and shouldn't appear in the wiki. The wiki should be already corrected.