Update egg import/update logic to all use the same pathwaus

This commit is contained in:
DaneEveritt 2022-05-15 14:40:19 -04:00
parent 6554164252
commit cca0010a00
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
12 changed files with 271 additions and 334 deletions

View file

@ -0,0 +1,22 @@
<?php
namespace Pterodactyl\Observers;
use Pterodactyl\Models\EggVariable;
class EggVariableObserver
{
public function creating(EggVariable $variable): void
{
if ($variable->field_type) {
unset($variable->field_type);
}
}
public function updating(EggVariable $variable): void
{
if ($variable->field_type) {
unset($variable->field_type);
}
}
}