playsocketjs 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2506,7 +2506,7 @@ function requireServer () {
|
|
|
2506
2506
|
limit.lastReset = now;
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
2509
|
-
const pointCost =
|
|
2509
|
+
const pointCost = operationType == "create_room" ? 5 : 1;
|
|
2510
2510
|
if (limit.points < pointCost) return false;
|
|
2511
2511
|
|
|
2512
2512
|
limit.points -= pointCost;
|